diff --git a/go.mod b/go.mod
index 791561b75..578eed119 100644
--- a/go.mod
+++ b/go.mod
@@ -10,7 +10,6 @@ require (
github.com/gin-contrib/cors v1.3.1
github.com/gin-contrib/sessions v0.0.3
github.com/gin-gonic/gin v1.7.2-0.20210908033055-3a6f18f32f22
- github.com/go-fed/activity v1.0.1-0.20210803212804-d866ba75dd0f
github.com/go-fed/httpsig v1.1.0
github.com/go-playground/validator/v10 v10.9.0
github.com/google/uuid v1.3.0
@@ -25,6 +24,7 @@ require (
github.com/russross/blackfriday/v2 v2.1.0
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.7.0
+ github.com/superseriousbusiness/activity v1.0.1-0.20211113133524-56560b73ace8
github.com/superseriousbusiness/exifremove v0.0.0-20210330092427-6acd27eac203
github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB
github.com/tdewolff/minify/v2 v2.9.21
diff --git a/go.sum b/go.sum
index 89178bb03..9eb2f6c28 100644
--- a/go.sum
+++ b/go.sum
@@ -151,8 +151,6 @@ github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWE
github.com/go-errors/errors v1.1.1/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
github.com/go-errors/errors v1.4.0 h1:2OA7MFw38+e9na72T1xgkomPb6GzZzzxvJ5U630FoRM=
github.com/go-errors/errors v1.4.0/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og=
-github.com/go-fed/activity v1.0.1-0.20210803212804-d866ba75dd0f h1:etNMc6V75EEoPVbFxXjMb7r6bmIoodXN4McXuPuljLY=
-github.com/go-fed/activity v1.0.1-0.20210803212804-d866ba75dd0f/go.mod h1:v4QoPaAzjWZ8zN2VFVGL5ep9C02mst0hQYHUpQwso4Q=
github.com/go-fed/httpsig v0.1.1-0.20190914113940-c2de3672e5b5/go.mod h1:T56HUNYZUQ1AGUzhAYPugZfp36sKApVnGBgKlIY+aIE=
github.com/go-fed/httpsig v1.1.0 h1:9M+hb0jkEICD8/cAiNqEB66R87tTINszBRTjwjQzWcI=
github.com/go-fed/httpsig v1.1.0/go.mod h1:RCMrTZvN1bJYtofsG4rd5NaO5obxQ5xBkdiS7xsT7bM=
@@ -445,6 +443,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/superseriousbusiness/activity v1.0.1-0.20211113133524-56560b73ace8 h1:8Bwy6CSsT33/sF5FhjND4vr7jiJCaq4elNTAW4rUzVc=
+github.com/superseriousbusiness/activity v1.0.1-0.20211113133524-56560b73ace8/go.mod h1:ZY9xwFDucvp6zTvM6FQZGl8PSOofPBFIAy6gSc85XkY=
github.com/superseriousbusiness/exifremove v0.0.0-20210330092427-6acd27eac203 h1:1SWXcTphBQjYGWRRxLFIAR1LVtQEj4eR7xPtyeOVM/c=
github.com/superseriousbusiness/exifremove v0.0.0-20210330092427-6acd27eac203/go.mod h1:0Xw5cYMOYpgaWs+OOSx41ugycl2qvKTi9tlMMcZhFyY=
github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB h1:PtW2w6budTvRV2J5QAoSvThTHBuvh8t/+BXIZFAaBSc=
diff --git a/internal/ap/extract.go b/internal/ap/extract.go
index f6ba555a8..b96079dec 100644
--- a/internal/ap/extract.go
+++ b/internal/ap/extract.go
@@ -31,7 +31,7 @@ import (
"strings"
"time"
- "github.com/go-fed/activity/pub"
+ "github.com/superseriousbusiness/activity/pub"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/util"
)
@@ -671,3 +671,21 @@ func isFollowers(uris []*url.URL, followersURI string) bool {
}
return false
}
+
+// ExtractSensitive extracts whether or not an item is 'sensitive'.
+// If no sensitive property is set on the item at all, or if this property
+// isn't a boolean, then false will be returned by default.
+func ExtractSensitive(withSensitive WithSensitive) bool {
+ sensitiveProp := withSensitive.GetActivityStreamsSensitive()
+ if sensitiveProp == nil {
+ return false
+ }
+
+ for iter := sensitiveProp.Begin(); iter != sensitiveProp.End(); iter = iter.Next() {
+ if iter.IsXMLSchemaBoolean() {
+ return iter.Get()
+ }
+ }
+
+ return false
+}
diff --git a/internal/ap/extract_test.go b/internal/ap/extract_test.go
index 1b5c1f11f..5a3907ef7 100644
--- a/internal/ap/extract_test.go
+++ b/internal/ap/extract_test.go
@@ -22,10 +22,10 @@ import (
"context"
"encoding/json"
- "github.com/go-fed/activity/pub"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/pub"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/testrig"
)
@@ -49,6 +49,10 @@ func document1() vocab.ActivityStreamsDocument {
dBlurhash.Set("UxQ0EkRP_4tRxtRjWBt7%hozM_ayV@oLf6WB")
d.SetTootBlurhash(dBlurhash)
+ dSensitive := streams.NewActivityStreamsSensitiveProperty()
+ dSensitive.AppendXMLSchemaBoolean(true)
+ d.SetActivityStreamsSensitive(dSensitive)
+
return d
}
diff --git a/internal/ap/extractattachments_test.go b/internal/ap/extractattachments_test.go
index 3be340cc5..e6262b5aa 100644
--- a/internal/ap/extractattachments_test.go
+++ b/internal/ap/extractattachments_test.go
@@ -21,8 +21,8 @@ package ap_test
import (
"testing"
- "github.com/go-fed/activity/streams"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/internal/ap"
)
diff --git a/internal/ap/extractsensitive_test.go b/internal/ap/extractsensitive_test.go
new file mode 100644
index 000000000..00b96d736
--- /dev/null
+++ b/internal/ap/extractsensitive_test.go
@@ -0,0 +1,42 @@
+/*
+ GoToSocial
+ Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+*/
+
+package ap_test
+
+import (
+ "testing"
+
+ "github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/gotosocial/internal/ap"
+)
+
+type ExtractSensitiveTestSuite struct {
+ ExtractTestSuite
+}
+
+func (suite *ExtractMentionsTestSuite) TestExtractSensitive() {
+ d := suite.document1
+ suite.True(ap.ExtractSensitive(d))
+
+ n := suite.noteWithMentions1
+ suite.False(ap.ExtractSensitive(n))
+}
+
+func TestExtractSensitiveTestSuite(t *testing.T) {
+ suite.Run(t, &ExtractSensitiveTestSuite{})
+}
diff --git a/internal/ap/interfaces.go b/internal/ap/interfaces.go
index da7e001db..7c8c1c943 100644
--- a/internal/ap/interfaces.go
+++ b/internal/ap/interfaces.go
@@ -18,7 +18,7 @@
package ap
-import "github.com/go-fed/activity/streams/vocab"
+import "github.com/superseriousbusiness/activity/streams/vocab"
// Accountable represents the minimum activitypub interface for representing an 'account'.
// This interface is fulfilled by: Person, Application, Organization, Service, and Group
@@ -249,9 +249,9 @@ type WithCC interface {
GetActivityStreamsCc() vocab.ActivityStreamsCcProperty
}
-// WithSensitive ...
+// WithSensitive represents an activity with ActivityStreamsSensitiveProperty
type WithSensitive interface {
- // TODO
+ GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty
}
// WithConversation ...
diff --git a/internal/api/s2s/user/inboxpost_test.go b/internal/api/s2s/user/inboxpost_test.go
index 3f02affdb..4d1c05757 100644
--- a/internal/api/s2s/user/inboxpost_test.go
+++ b/internal/api/s2s/user/inboxpost_test.go
@@ -29,9 +29,9 @@ import (
"time"
"github.com/gin-gonic/gin"
- "github.com/go-fed/activity/pub"
- "github.com/go-fed/activity/streams"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/pub"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/internal/api/s2s/user"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
diff --git a/internal/api/s2s/user/outboxget_test.go b/internal/api/s2s/user/outboxget_test.go
index 4f5ea3f17..251051cbd 100644
--- a/internal/api/s2s/user/outboxget_test.go
+++ b/internal/api/s2s/user/outboxget_test.go
@@ -27,9 +27,9 @@ import (
"testing"
"github.com/gin-gonic/gin"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/api/s2s/user"
"github.com/superseriousbusiness/gotosocial/testrig"
)
diff --git a/internal/api/s2s/user/repliesget_test.go b/internal/api/s2s/user/repliesget_test.go
index 32cd0c366..cd1094b53 100644
--- a/internal/api/s2s/user/repliesget_test.go
+++ b/internal/api/s2s/user/repliesget_test.go
@@ -28,10 +28,10 @@ import (
"testing"
"github.com/gin-gonic/gin"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/api/s2s/user"
"github.com/superseriousbusiness/gotosocial/testrig"
)
diff --git a/internal/api/s2s/user/userget_test.go b/internal/api/s2s/user/userget_test.go
index 68f16fc76..303295cfe 100644
--- a/internal/api/s2s/user/userget_test.go
+++ b/internal/api/s2s/user/userget_test.go
@@ -27,10 +27,10 @@ import (
"testing"
"github.com/gin-gonic/gin"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/api/s2s/user"
"github.com/superseriousbusiness/gotosocial/testrig"
)
diff --git a/internal/federation/authenticate.go b/internal/federation/authenticate.go
index 78cfe2b5d..eb0e675c3 100644
--- a/internal/federation/authenticate.go
+++ b/internal/federation/authenticate.go
@@ -25,14 +25,15 @@ import (
"encoding/pem"
"errors"
"fmt"
- "github.com/sirupsen/logrus"
"net/url"
"strings"
- "github.com/go-fed/activity/pub"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/sirupsen/logrus"
+
"github.com/go-fed/httpsig"
+ "github.com/superseriousbusiness/activity/pub"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/util"
diff --git a/internal/federation/clock.go b/internal/federation/clock.go
index cc67f8b73..b727df503 100644
--- a/internal/federation/clock.go
+++ b/internal/federation/clock.go
@@ -21,7 +21,7 @@ package federation
import (
"time"
- "github.com/go-fed/activity/pub"
+ "github.com/superseriousbusiness/activity/pub"
)
/*
diff --git a/internal/federation/commonbehavior.go b/internal/federation/commonbehavior.go
index 29eb9b6f3..299124c47 100644
--- a/internal/federation/commonbehavior.go
+++ b/internal/federation/commonbehavior.go
@@ -22,8 +22,8 @@ import (
"context"
"net/http"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
)
/*
diff --git a/internal/federation/dereferencing/account.go b/internal/federation/dereferencing/account.go
index 7d8e2ff94..d5adb545b 100644
--- a/internal/federation/dereferencing/account.go
+++ b/internal/federation/dereferencing/account.go
@@ -26,9 +26,9 @@ import (
"net/url"
"strings"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/id"
diff --git a/internal/federation/dereferencing/collectionpage.go b/internal/federation/dereferencing/collectionpage.go
index cf97327a5..9b8024c90 100644
--- a/internal/federation/dereferencing/collectionpage.go
+++ b/internal/federation/dereferencing/collectionpage.go
@@ -25,8 +25,8 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
)
diff --git a/internal/federation/dereferencing/dereferencer_test.go b/internal/federation/dereferencing/dereferencer_test.go
index e73847ac7..d4bf3396d 100644
--- a/internal/federation/dereferencing/dereferencer_test.go
+++ b/internal/federation/dereferencing/dereferencer_test.go
@@ -25,10 +25,10 @@ import (
"net/http"
"codeberg.org/gruf/go-store/kv"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/federation/dereferencing"
diff --git a/internal/federation/dereferencing/status.go b/internal/federation/dereferencing/status.go
index c4102a8f3..383f9718e 100644
--- a/internal/federation/dereferencing/status.go
+++ b/internal/federation/dereferencing/status.go
@@ -26,9 +26,9 @@ import (
"net/url"
"strings"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/id"
diff --git a/internal/federation/federatingactor.go b/internal/federation/federatingactor.go
index 65a16efaf..a614822d6 100644
--- a/internal/federation/federatingactor.go
+++ b/internal/federation/federatingactor.go
@@ -23,8 +23,8 @@ import (
"net/http"
"net/url"
- "github.com/go-fed/activity/pub"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/pub"
+ "github.com/superseriousbusiness/activity/streams/vocab"
)
// federatingActor implements the go-fed federating protocol interface
diff --git a/internal/federation/federatingdb/accept.go b/internal/federation/federatingdb/accept.go
index 8d295161c..1509b37bc 100644
--- a/internal/federation/federatingdb/accept.go
+++ b/internal/federation/federatingdb/accept.go
@@ -23,8 +23,8 @@ import (
"errors"
"fmt"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
diff --git a/internal/federation/federatingdb/announce.go b/internal/federation/federatingdb/announce.go
index 7a40cd051..b506a9f78 100644
--- a/internal/federation/federatingdb/announce.go
+++ b/internal/federation/federatingdb/announce.go
@@ -22,8 +22,8 @@ import (
"context"
"fmt"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/messages"
)
diff --git a/internal/federation/federatingdb/create.go b/internal/federation/federatingdb/create.go
index 862f84473..d992c2bd7 100644
--- a/internal/federation/federatingdb/create.go
+++ b/internal/federation/federatingdb/create.go
@@ -24,8 +24,8 @@ import (
"fmt"
"strings"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
diff --git a/internal/federation/federatingdb/db.go b/internal/federation/federatingdb/db.go
index 196d6163c..4b2f92fd4 100644
--- a/internal/federation/federatingdb/db.go
+++ b/internal/federation/federatingdb/db.go
@@ -23,8 +23,8 @@ import (
"sync"
"time"
- "github.com/go-fed/activity/pub"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/pub"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/typeutils"
diff --git a/internal/federation/federatingdb/followers.go b/internal/federation/federatingdb/followers.go
index 2eccf167d..96b824c66 100644
--- a/internal/federation/federatingdb/followers.go
+++ b/internal/federation/federatingdb/followers.go
@@ -5,8 +5,8 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/db"
)
diff --git a/internal/federation/federatingdb/followers_test.go b/internal/federation/federatingdb/followers_test.go
index d993a7201..fbdf738a9 100644
--- a/internal/federation/federatingdb/followers_test.go
+++ b/internal/federation/federatingdb/followers_test.go
@@ -23,8 +23,8 @@ import (
"encoding/json"
"testing"
- "github.com/go-fed/activity/streams"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/testrig"
)
diff --git a/internal/federation/federatingdb/following.go b/internal/federation/federatingdb/following.go
index cc6111715..54d703742 100644
--- a/internal/federation/federatingdb/following.go
+++ b/internal/federation/federatingdb/following.go
@@ -5,8 +5,8 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/db"
)
diff --git a/internal/federation/federatingdb/following_test.go b/internal/federation/federatingdb/following_test.go
index 7788840d7..7c2727269 100644
--- a/internal/federation/federatingdb/following_test.go
+++ b/internal/federation/federatingdb/following_test.go
@@ -23,8 +23,8 @@ import (
"encoding/json"
"testing"
- "github.com/go-fed/activity/streams"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/testrig"
)
diff --git a/internal/federation/federatingdb/get.go b/internal/federation/federatingdb/get.go
index 6c629d717..a409b7b91 100644
--- a/internal/federation/federatingdb/get.go
+++ b/internal/federation/federatingdb/get.go
@@ -23,8 +23,8 @@ import (
"errors"
"net/url"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/util"
)
diff --git a/internal/federation/federatingdb/inbox.go b/internal/federation/federatingdb/inbox.go
index 95886b571..90a10a499 100644
--- a/internal/federation/federatingdb/inbox.go
+++ b/internal/federation/federatingdb/inbox.go
@@ -22,8 +22,9 @@ import (
"context"
"net/url"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
+ "github.com/superseriousbusiness/gotosocial/internal/db"
)
// InboxContains returns true if the OrderedCollection at 'inbox'
@@ -56,3 +57,25 @@ func (f *federatingDB) GetInbox(c context.Context, inboxIRI *url.URL) (inbox voc
func (f *federatingDB) SetInbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error {
return nil
}
+
+// InboxForActor fetches the inbox corresponding to the given actorIRI.
+//
+// It is acceptable to just return nil for the inboxIRI. In this case, the library will
+// attempt to resolve the inbox of the actor by remote dereferencing instead.
+//
+// The library makes this call only after acquiring a lock first.
+func (f *federatingDB) InboxForActor(c context.Context, actorIRI *url.URL) (inboxIRI *url.URL, err error) {
+ account, err := f.db.GetAccountByURI(c, actorIRI.String())
+ if err != nil {
+ // if there are just no entries for this account yet it's fine, return nil
+ // and go-fed will try to dereference it instead
+ if err == db.ErrNoEntries {
+ return nil, nil
+ }
+ // there's been an actual error...
+ return nil, err
+ }
+
+ // we got it!
+ return url.Parse(account.InboxURI)
+}
diff --git a/internal/federation/federatingdb/liked.go b/internal/federation/federatingdb/liked.go
index 93b3d2c88..2729c1223 100644
--- a/internal/federation/federatingdb/liked.go
+++ b/internal/federation/federatingdb/liked.go
@@ -22,8 +22,8 @@ import (
"context"
"net/url"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
)
// Liked obtains the Liked Collection for an actor with the
diff --git a/internal/federation/federatingdb/outbox.go b/internal/federation/federatingdb/outbox.go
index 07caf999e..9d540e3a2 100644
--- a/internal/federation/federatingdb/outbox.go
+++ b/internal/federation/federatingdb/outbox.go
@@ -22,8 +22,8 @@ import (
"context"
"net/url"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
)
// GetOutbox returns the first ordered collection page of the outbox
diff --git a/internal/federation/federatingdb/reject.go b/internal/federation/federatingdb/reject.go
index d05c41654..2d8687ee9 100644
--- a/internal/federation/federatingdb/reject.go
+++ b/internal/federation/federatingdb/reject.go
@@ -23,8 +23,8 @@ import (
"errors"
"fmt"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
diff --git a/internal/federation/federatingdb/reject_test.go b/internal/federation/federatingdb/reject_test.go
index 5e5f12a79..2b213a3f0 100644
--- a/internal/federation/federatingdb/reject_test.go
+++ b/internal/federation/federatingdb/reject_test.go
@@ -22,8 +22,8 @@ import (
"testing"
"time"
- "github.com/go-fed/activity/streams"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/messages"
diff --git a/internal/federation/federatingdb/undo.go b/internal/federation/federatingdb/undo.go
index 934b5970d..f2dcc72c5 100644
--- a/internal/federation/federatingdb/undo.go
+++ b/internal/federation/federatingdb/undo.go
@@ -23,8 +23,8 @@ import (
"errors"
"fmt"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
diff --git a/internal/federation/federatingdb/update.go b/internal/federation/federatingdb/update.go
index 646b155dc..8f318ce71 100644
--- a/internal/federation/federatingdb/update.go
+++ b/internal/federation/federatingdb/update.go
@@ -23,8 +23,8 @@ import (
"errors"
"fmt"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/messages"
diff --git a/internal/federation/federatingdb/util.go b/internal/federation/federatingdb/util.go
index 34a103a49..87b85aed6 100644
--- a/internal/federation/federatingdb/util.go
+++ b/internal/federation/federatingdb/util.go
@@ -25,9 +25,9 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
diff --git a/internal/federation/federatingprotocol.go b/internal/federation/federatingprotocol.go
index 504e2dbeb..be5ab4d85 100644
--- a/internal/federation/federatingprotocol.go
+++ b/internal/federation/federatingprotocol.go
@@ -25,10 +25,10 @@ import (
"net/http"
"net/url"
- "github.com/go-fed/activity/pub"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
"github.com/sirupsen/logrus"
+ "github.com/superseriousbusiness/activity/pub"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/util"
diff --git a/internal/federation/federator.go b/internal/federation/federator.go
index 2813f6ff8..280375d7d 100644
--- a/internal/federation/federator.go
+++ b/internal/federation/federator.go
@@ -22,7 +22,7 @@ import (
"context"
"net/url"
- "github.com/go-fed/activity/pub"
+ "github.com/superseriousbusiness/activity/pub"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
diff --git a/internal/federation/federator_test.go b/internal/federation/federator_test.go
index 44ae54074..7ac149c0d 100644
--- a/internal/federation/federator_test.go
+++ b/internal/federation/federator_test.go
@@ -25,10 +25,10 @@ import (
"testing"
"codeberg.org/gruf/go-store/kv"
- "github.com/go-fed/activity/pub"
"github.com/go-fed/httpsig"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/pub"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
diff --git a/internal/federation/transport.go b/internal/federation/transport.go
index 9e2e38e19..5b5afaad5 100644
--- a/internal/federation/transport.go
+++ b/internal/federation/transport.go
@@ -23,7 +23,7 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/pub"
+ "github.com/superseriousbusiness/activity/pub"
"github.com/superseriousbusiness/gotosocial/internal/util"
)
diff --git a/internal/processing/account/account_test.go b/internal/processing/account/account_test.go
index e2f8a1339..9bc97a77b 100644
--- a/internal/processing/account/account_test.go
+++ b/internal/processing/account/account_test.go
@@ -20,8 +20,8 @@ package account_test
import (
"codeberg.org/gruf/go-store/kv"
- "github.com/go-fed/activity/pub"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/pub"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/email"
diff --git a/internal/processing/federation/getfollowers.go b/internal/processing/federation/getfollowers.go
index b17c90e07..aac63cd5c 100644
--- a/internal/processing/federation/getfollowers.go
+++ b/internal/processing/federation/getfollowers.go
@@ -24,7 +24,7 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
)
diff --git a/internal/processing/federation/getfollowing.go b/internal/processing/federation/getfollowing.go
index e2d50d238..0715ffece 100644
--- a/internal/processing/federation/getfollowing.go
+++ b/internal/processing/federation/getfollowing.go
@@ -24,7 +24,7 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
)
diff --git a/internal/processing/federation/getoutbox.go b/internal/processing/federation/getoutbox.go
index a3b2cff3c..2e8a4d3f5 100644
--- a/internal/processing/federation/getoutbox.go
+++ b/internal/processing/federation/getoutbox.go
@@ -24,7 +24,7 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
)
diff --git a/internal/processing/federation/getstatus.go b/internal/processing/federation/getstatus.go
index a4f251023..5c13a54f6 100644
--- a/internal/processing/federation/getstatus.go
+++ b/internal/processing/federation/getstatus.go
@@ -24,7 +24,7 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
diff --git a/internal/processing/federation/getstatusreplies.go b/internal/processing/federation/getstatusreplies.go
index 0fa0cc386..28c46269e 100644
--- a/internal/processing/federation/getstatusreplies.go
+++ b/internal/processing/federation/getstatusreplies.go
@@ -24,7 +24,7 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
diff --git a/internal/processing/federation/getuser.go b/internal/processing/federation/getuser.go
index 0d80e528e..37444bf5d 100644
--- a/internal/processing/federation/getuser.go
+++ b/internal/processing/federation/getuser.go
@@ -24,8 +24,8 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
"github.com/superseriousbusiness/gotosocial/internal/util"
)
diff --git a/internal/processing/fromclientapi.go b/internal/processing/fromclientapi.go
index db6f7382d..b8259c87a 100644
--- a/internal/processing/fromclientapi.go
+++ b/internal/processing/fromclientapi.go
@@ -24,7 +24,7 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/streams"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
diff --git a/internal/processing/processor_test.go b/internal/processing/processor_test.go
index 270682b26..181cfa63a 100644
--- a/internal/processing/processor_test.go
+++ b/internal/processing/processor_test.go
@@ -27,8 +27,8 @@ import (
"net/http"
"codeberg.org/gruf/go-store/kv"
- "github.com/go-fed/activity/streams"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/email"
diff --git a/internal/transport/controller.go b/internal/transport/controller.go
index 9b22928d4..86f612c15 100644
--- a/internal/transport/controller.go
+++ b/internal/transport/controller.go
@@ -24,8 +24,8 @@ import (
"fmt"
"sync"
- "github.com/go-fed/activity/pub"
"github.com/go-fed/httpsig"
+ "github.com/superseriousbusiness/activity/pub"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
)
diff --git a/internal/transport/transport.go b/internal/transport/transport.go
index 14787f5a2..5c0c7a61f 100644
--- a/internal/transport/transport.go
+++ b/internal/transport/transport.go
@@ -24,8 +24,8 @@ import (
"net/url"
"sync"
- "github.com/go-fed/activity/pub"
"github.com/go-fed/httpsig"
+ "github.com/superseriousbusiness/activity/pub"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
)
diff --git a/internal/typeutils/astointernal.go b/internal/typeutils/astointernal.go
index 89b950c5b..c5ee51130 100644
--- a/internal/typeutils/astointernal.go
+++ b/internal/typeutils/astointernal.go
@@ -294,7 +294,7 @@ func (c *converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab
status.Likeable = true
// sensitive
- // TODO: this is a bool
+ status.Sensitive = ap.ExtractSensitive(statusable)
// language
// we might be able to extract this from the contentMap field
diff --git a/internal/typeutils/astointernal_test.go b/internal/typeutils/astointernal_test.go
index bc44ec2bd..38ec757c9 100644
--- a/internal/typeutils/astointernal_test.go
+++ b/internal/typeutils/astointernal_test.go
@@ -24,10 +24,10 @@ import (
"fmt"
"testing"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
)
diff --git a/internal/typeutils/converter.go b/internal/typeutils/converter.go
index eeb5bead1..212ae1247 100644
--- a/internal/typeutils/converter.go
+++ b/internal/typeutils/converter.go
@@ -22,7 +22,7 @@ import (
"context"
"net/url"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/api/model"
"github.com/superseriousbusiness/gotosocial/internal/cache"
diff --git a/internal/typeutils/converter_test.go b/internal/typeutils/converter_test.go
index 041182369..d557e52f2 100644
--- a/internal/typeutils/converter_test.go
+++ b/internal/typeutils/converter_test.go
@@ -19,8 +19,8 @@
package typeutils_test
import (
- "github.com/go-fed/activity/streams/vocab"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
diff --git a/internal/typeutils/internaltoas.go b/internal/typeutils/internaltoas.go
index 047d61b80..7afb65f21 100644
--- a/internal/typeutils/internaltoas.go
+++ b/internal/typeutils/internaltoas.go
@@ -25,9 +25,9 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/pub"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/pub"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
)
@@ -537,6 +537,11 @@ func (c *converter) StatusToAS(ctx context.Context, s *gtsmodel.Status) (vocab.A
repliesProp.SetActivityStreamsCollection(repliesCollection)
status.SetActivityStreamsReplies(repliesProp)
+ // sensitive
+ sensitiveProp := streams.NewActivityStreamsSensitiveProperty()
+ sensitiveProp.AppendXMLSchemaBoolean(s.Sensitive)
+ status.SetActivityStreamsSensitive(sensitiveProp)
+
// put the note in our cache in case we need it again soon
if err := c.asCache.Store(s.ID, status); err != nil {
return nil, err
diff --git a/internal/typeutils/internaltoas_test.go b/internal/typeutils/internaltoas_test.go
index d8098098f..da7dc883a 100644
--- a/internal/typeutils/internaltoas_test.go
+++ b/internal/typeutils/internaltoas_test.go
@@ -24,9 +24,9 @@ import (
"fmt"
"testing"
- "github.com/go-fed/activity/streams"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
)
type InternalToASTestSuite struct {
@@ -75,6 +75,39 @@ func (suite *InternalToASTestSuite) TestOutboxToASCollection() {
suite.Equal(`{"@context":"https://www.w3.org/ns/activitystreams","first":"http://localhost:8080/users/admin/outbox?page=true","id":"http://localhost:8080/users/admin/outbox","type":"OrderedCollection"}`, string(bytes))
}
+func (suite *InternalToASTestSuite) TestStatusToAS() {
+ testStatus := suite.testStatuses["local_account_1_status_1"]
+ ctx := context.Background()
+
+ asStatus, err := suite.typeconverter.StatusToAS(ctx, testStatus)
+ suite.NoError(err)
+
+ ser, err := streams.Serialize(asStatus)
+ assert.NoError(suite.T(), err)
+
+ bytes, err := json.Marshal(ser)
+ suite.NoError(err)
+
+ suite.Equal(`{"@context":"https://www.w3.org/ns/activitystreams","attachment":[],"attributedTo":"http://localhost:8080/users/the_mighty_zork","cc":"http://localhost:8080/users/the_mighty_zork/followers","content":"hello everyone!","id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY","published":"2021-10-20T12:40:37+02:00","replies":{"first":{"id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies?page=true","next":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies?only_other_accounts=false\u0026page=true","partOf":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies","type":"CollectionPage"},"id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies","type":"Collection"},"sensitive":true,"summary":"introduction post","tag":[],"to":"https://www.w3.org/ns/activitystreams#Public","type":"Note","url":"http://localhost:8080/@the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY"}`, string(bytes))
+}
+
+func (suite *InternalToASTestSuite) TestStatusToASNotSensitive() {
+ testStatus := suite.testStatuses["admin_account_status_1"]
+
+ ctx := context.Background()
+
+ asStatus, err := suite.typeconverter.StatusToAS(ctx, testStatus)
+ suite.NoError(err)
+
+ ser, err := streams.Serialize(asStatus)
+ assert.NoError(suite.T(), err)
+
+ bytes, err := json.Marshal(ser)
+ suite.NoError(err)
+
+ suite.Equal(`{"@context":"https://www.w3.org/ns/activitystreams","attachment":[],"attributedTo":"http://localhost:8080/users/admin","cc":"http://localhost:8080/users/admin/followers","content":"hello world! #welcome ! first post on the instance :rainbow: !","id":"http://localhost:8080/users/admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R","published":"2021-10-20T11:36:45Z","replies":{"first":{"id":"http://localhost:8080/users/admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R/replies?page=true","next":"http://localhost:8080/users/admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R/replies?only_other_accounts=false\u0026page=true","partOf":"http://localhost:8080/users/admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R/replies","type":"CollectionPage"},"id":"http://localhost:8080/users/admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R/replies","type":"Collection"},"sensitive":false,"summary":"","tag":[],"to":"https://www.w3.org/ns/activitystreams#Public","type":"Note","url":"http://localhost:8080/@admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R"}`, string(bytes))
+}
+
func (suite *InternalToASTestSuite) TestStatusesToASOutboxPage() {
testAccount := suite.testAccounts["admin_account"]
ctx := context.Background()
diff --git a/internal/typeutils/wrap.go b/internal/typeutils/wrap.go
index e7c422eba..b5938c419 100644
--- a/internal/typeutils/wrap.go
+++ b/internal/typeutils/wrap.go
@@ -4,9 +4,9 @@ import (
"fmt"
"net/url"
- "github.com/go-fed/activity/pub"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/pub"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
"github.com/superseriousbusiness/gotosocial/internal/id"
diff --git a/internal/typeutils/wrap_test.go b/internal/typeutils/wrap_test.go
index 14309c00c..3d5d6001e 100644
--- a/internal/typeutils/wrap_test.go
+++ b/internal/typeutils/wrap_test.go
@@ -23,8 +23,8 @@ import (
"encoding/json"
"testing"
- "github.com/go-fed/activity/streams"
"github.com/stretchr/testify/suite"
+ "github.com/superseriousbusiness/activity/streams"
)
type WrapTestSuite struct {
@@ -66,7 +66,7 @@ func (suite *WrapTestSuite) TestWrapNoteInCreate() {
bytes, err := json.Marshal(createI)
suite.NoError(err)
- suite.Equal(`{"@context":"https://www.w3.org/ns/activitystreams","actor":"http://localhost:8080/users/the_mighty_zork","cc":"http://localhost:8080/users/the_mighty_zork/followers","id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/activity","object":{"attachment":[],"attributedTo":"http://localhost:8080/users/the_mighty_zork","cc":"http://localhost:8080/users/the_mighty_zork/followers","content":"hello everyone!","id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY","published":"2021-10-20T12:40:37+02:00","replies":{"first":{"id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies?page=true","next":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies?only_other_accounts=false\u0026page=true","partOf":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies","type":"CollectionPage"},"id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies","type":"Collection"},"summary":"introduction post","tag":[],"to":"https://www.w3.org/ns/activitystreams#Public","type":"Note","url":"http://localhost:8080/@the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY"},"published":"2021-10-20T12:40:37+02:00","to":"https://www.w3.org/ns/activitystreams#Public","type":"Create"}`, string(bytes))
+ suite.Equal(`{"@context":"https://www.w3.org/ns/activitystreams","actor":"http://localhost:8080/users/the_mighty_zork","cc":"http://localhost:8080/users/the_mighty_zork/followers","id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/activity","object":{"attachment":[],"attributedTo":"http://localhost:8080/users/the_mighty_zork","cc":"http://localhost:8080/users/the_mighty_zork/followers","content":"hello everyone!","id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY","published":"2021-10-20T12:40:37+02:00","replies":{"first":{"id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies?page=true","next":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies?only_other_accounts=false\u0026page=true","partOf":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies","type":"CollectionPage"},"id":"http://localhost:8080/users/the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY/replies","type":"Collection"},"sensitive":true,"summary":"introduction post","tag":[],"to":"https://www.w3.org/ns/activitystreams#Public","type":"Note","url":"http://localhost:8080/@the_mighty_zork/statuses/01F8MHAMCHF6Y650WCRSCP4WMY"},"published":"2021-10-20T12:40:37+02:00","to":"https://www.w3.org/ns/activitystreams#Public","type":"Create"}`, string(bytes))
}
func TestWrapTestSuite(t *testing.T) {
diff --git a/testrig/testmodels.go b/testrig/testmodels.go
index c879d9e38..f40dd4b30 100644
--- a/testrig/testmodels.go
+++ b/testrig/testmodels.go
@@ -36,9 +36,9 @@ import (
"os"
"time"
- "github.com/go-fed/activity/pub"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
+ "github.com/superseriousbusiness/activity/pub"
+ "github.com/superseriousbusiness/activity/streams"
+ "github.com/superseriousbusiness/activity/streams/vocab"
"github.com/superseriousbusiness/gotosocial/internal/ap"
"github.com/superseriousbusiness/gotosocial/internal/gtsmodel"
)
diff --git a/testrig/transportcontroller.go b/testrig/transportcontroller.go
index 31e38f42f..c82b55f69 100644
--- a/testrig/transportcontroller.go
+++ b/testrig/transportcontroller.go
@@ -23,7 +23,7 @@ import (
"io/ioutil"
"net/http"
- "github.com/go-fed/activity/pub"
+ "github.com/superseriousbusiness/activity/pub"
"github.com/superseriousbusiness/gotosocial/internal/db"
"github.com/superseriousbusiness/gotosocial/internal/federation"
"github.com/superseriousbusiness/gotosocial/internal/transport"
diff --git a/vendor/github.com/go-fed/activity/pub/README.md b/vendor/github.com/go-fed/activity/pub/README.md
deleted file mode 100644
index dafe176ea..000000000
--- a/vendor/github.com/go-fed/activity/pub/README.md
+++ /dev/null
@@ -1,270 +0,0 @@
-# pub
-
-Implements the Social and Federating Protocols in the ActivityPub specification.
-
-## Reference & Tutorial
-
-The [go-fed website](https://go-fed.org/) contains tutorials and reference
-materials, in addition to the rest of this README.
-
-## How To Use
-
-```
-go get github.com/go-fed/activity
-```
-
-The root of all ActivityPub behavior is the `Actor`, which requires you to
-implement a few interfaces:
-
-```golang
-import (
- "github.com/go-fed/activity/pub"
-)
-
-type myActivityPubApp struct { /* ... */ }
-type myAppsDatabase struct { /* ... */ }
-type myAppsClock struct { /* ... */ }
-
-var (
- // Your app will implement pub.CommonBehavior, and either
- // pub.SocialProtocol, pub.FederatingProtocol, or both.
- myApp = &myActivityPubApp{}
- myCommonBehavior pub.CommonBehavior = myApp
- mySocialProtocol pub.SocialProtocol = myApp
- myFederatingProtocol pub.FederatingProtocol = myApp
- // Your app's database implementation.
- myDatabase pub.Database = &myAppsDatabase{}
- // Your app's clock.
- myClock pub.Clock = &myAppsClock{}
-)
-
-// Only support the C2S Social protocol
-actor := pub.NewSocialActor(
- myCommonBehavior,
- mySocialProtocol,
- myDatabase,
- myClock)
-// OR
-//
-// Only support S2S Federating protocol
-actor = pub.NewFederatingActor(
- myCommonBehavior,
- myFederatingProtocol,
- myDatabase,
- myClock)
-// OR
-//
-// Support both C2S Social and S2S Federating protocol.
-actor = pub.NewActor(
- myCommonBehavior,
- mySocialProtocol,
- myFederatingProtocol,
- myDatabase,
- myClock)
-```
-
-Next, hook the `Actor` into your web server:
-
-```golang
-// The application's actor
-var actor pub.Actor
-var outboxHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
- c := context.Background()
- // Populate c with request-specific information
- if handled, err := actor.PostOutbox(c, w, r); err != nil {
- // Write to w
- return
- } else if handled {
- return
- } else if handled, err = actor.GetOutbox(c, w, r); err != nil {
- // Write to w
- return
- } else if handled {
- return
- }
- // else:
- //
- // Handle non-ActivityPub request, such as serving a webpage.
-}
-var inboxHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
- c := context.Background()
- // Populate c with request-specific information
- if handled, err := actor.PostInbox(c, w, r); err != nil {
- // Write to w
- return
- } else if handled {
- return
- } else if handled, err = actor.GetInbox(c, w, r); err != nil {
- // Write to w
- return
- } else if handled {
- return
- }
- // else:
- //
- // Handle non-ActivityPub request, such as serving a webpage.
-}
-// Add the handlers to a HTTP server
-serveMux := http.NewServeMux()
-serveMux.HandleFunc("/actor/outbox", outboxHandler)
-serveMux.HandleFunc("/actor/inbox", inboxHandler)
-var server http.Server
-server.Handler = serveMux
-```
-
-To serve ActivityStreams data:
-
-```golang
-myHander := pub.NewActivityStreamsHandler(myDatabase, myClock)
-var activityStreamsHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
- c := context.Background()
- // Populate c with request-specific information
- if handled, err := myHandler(c, w, r); err != nil {
- // Write to w
- return
- } else if handled {
- return
- }
- // else:
- //
- // Handle non-ActivityPub request, such as serving a webpage.
-}
-serveMux.HandleFunc("/some/data/like/a/note", activityStreamsHandler)
-```
-
-### Dependency Injection
-
-Package `pub` relies on dependency injection to provide out-of-the-box support
-for ActivityPub. The interfaces to be satisfied are:
-
-* `CommonBehavior` - Behavior needed regardless of which Protocol is used.
-* `SocialProtocol` - Behavior needed for the Social Protocol.
-* `FederatingProtocol` - Behavior needed for the Federating Protocol.
-* `Database` - The data store abstraction, not tied to the `database/sql`
-package.
-* `Clock` - The server's internal clock.
-* `Transport` - Responsible for the network that serves requests and deliveries
-of ActivityStreams data. A `HttpSigTransport` type is provided.
-
-These implementations form the core of an application's behavior without
-worrying about the particulars and pitfalls of the ActivityPub protocol.
-Implementing these interfaces gives you greater assurance about being
-ActivityPub compliant.
-
-### Application Logic
-
-The `SocialProtocol` and `FederatingProtocol` are responsible for returning
-callback functions compatible with `streams.TypeResolver`. They also return
-`SocialWrappedCallbacks` and `FederatingWrappedCallbacks`, which are nothing
-more than a bundle of default behaviors for types like `Create`, `Update`, and
-so on.
-
-Applications will want to focus on implementing their specific behaviors in the
-callbacks, and have fine-grained control over customization:
-
-```golang
-// Implements the FederatingProtocol interface.
-//
-// This illustration can also be applied for the Social Protocol.
-func (m *myAppsFederatingProtocol) Callbacks(c context.Context) (wrapped pub.FederatingWrappedCallbacks, other []interface{}) {
- // The context 'c' has request-specific logic and can be used to apply complex
- // logic building the right behaviors, if desired.
- //
- // 'c' will later be passed through to the callbacks created below.
- wrapped = pub.FederatingWrappedCallbacks{
- Create: func(ctx context.Context, create vocab.ActivityStreamsCreate) error {
- // This function is wrapped by default behavior.
- //
- // More application specific logic can be written here.
- //
- // 'ctx' will have request-specific information from the HTTP handler. It
- // is the same as the 'c' passed to the Callbacks method.
- // 'create' has, at this point, already triggered the recommended
- // ActivityPub side effect behavior. The application can process it
- // further as needed.
- return nil
- },
- }
- // The 'other' must contain functions that satisfy the signature pattern
- // required by streams.JSONResolver.
- //
- // If they are not, at runtime errors will be returned to indicate this.
- other = []interface{}{
- // The FederatingWrappedCallbacks has default behavior for an "Update" type,
- // but since we are providing this behavior in "other" and not in the
- // FederatingWrappedCallbacks.Update member, we will entirely replace the
- // default behavior provided by go-fed. Be careful that this still
- // implements ActivityPub properly.
- func(ctx context.Context, update vocab.ActivityStreamsUpdate) error {
- // This function is NOT wrapped by default behavior.
- //
- // Application specific logic can be written here.
- //
- // 'ctx' will have request-specific information from the HTTP handler. It
- // is the same as the 'c' passed to the Callbacks method.
- // 'update' will NOT trigger the recommended ActivityPub side effect
- // behavior. The application should do so in addition to any other custom
- // side effects required.
- return nil
- },
- // The "Listen" type has no default suggested behavior in ActivityPub, so
- // this just makes this application able to handle "Listen" activities.
- func(ctx context.Context, listen vocab.ActivityStreamsListen) error {
- // This function is NOT wrapped by default behavior. There's not a
- // FederatingWrappedCallbacks.Listen member to wrap.
- //
- // Application specific logic can be written here.
- //
- // 'ctx' will have request-specific information from the HTTP handler. It
- // is the same as the 'c' passed to the Callbacks method.
- // 'listen' can be processed with side effects as the application needs.
- return nil
- },
- }
- return
-}
-```
-
-The `pub` package supports applications that grow into more custom solutions by
-overriding the default behaviors as needed.
-
-### ActivityStreams Extensions: Future-Proofing An Application
-
-Package `pub` relies on the `streams.TypeResolver` and `streams.JSONResolver`
-code generated types. As new ActivityStreams extensions are developed and their
-code is generated, `pub` will automatically pick up support for these
-extensions.
-
-The steps to rapidly implement a new extension in a `pub` application are:
-
-1. Generate an OWL definition of the ActivityStreams extension. This definition
-could be the same one defining the vocabulary at the `@context` IRI.
-2. Run `astool` to autogenerate the golang types in the `streams` package.
-3. Implement the application's callbacks in the `FederatingProtocol.Callbacks`
-or `SocialProtocol.Callbacks` for the new behaviors needed.
-4. Build the application, which builds `pub`, with the newly generated `streams`
-code. No code changes in `pub` are required.
-
-Whether an author of an ActivityStreams extension or an application developer,
-these quick steps should reduce the barrier to adopion in a statically-typed
-environment.
-
-### DelegateActor
-
-For those that need a near-complete custom ActivityPub solution, or want to have
-that possibility in the future after adopting go-fed, the `DelegateActor`
-interface can be used to obtain an `Actor`:
-
-```golang
-// Use custom ActivityPub implementation
-actor = pub.NewCustomActor(
- myDelegateActor,
- isSocialProtocolEnabled,
- isFederatedProtocolEnabled,
- myAppsClock)
-```
-
-It does not guarantee that an implementation adheres to the ActivityPub
-specification. It acts as a stepping stone for applications that want to build
-up to a fully custom solution and not be locked into the `pub` package
-implementation.
diff --git a/vendor/github.com/go-fed/activity/pub/activity.go b/vendor/github.com/go-fed/activity/pub/activity.go
deleted file mode 100644
index 6a1d445af..000000000
--- a/vendor/github.com/go-fed/activity/pub/activity.go
+++ /dev/null
@@ -1,49 +0,0 @@
-package pub
-
-import (
- "github.com/go-fed/activity/streams/vocab"
-)
-
-// Activity represents any ActivityStreams Activity type.
-//
-// The Activity types provided in the streams package implement this.
-type Activity interface {
- // Activity is also a vocab.Type
- vocab.Type
- // GetActivityStreamsActor returns the "actor" property if it exists, and
- // nil otherwise.
- GetActivityStreamsActor() vocab.ActivityStreamsActorProperty
- // GetActivityStreamsAudience returns the "audience" property if it
- // exists, and nil otherwise.
- GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty
- // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
- // otherwise.
- GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty
- // GetActivityStreamsBto returns the "bto" property if it exists, and nil
- // otherwise.
- GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty
- // GetActivityStreamsCc returns the "cc" property if it exists, and nil
- // otherwise.
- GetActivityStreamsCc() vocab.ActivityStreamsCcProperty
- // GetActivityStreamsTo returns the "to" property if it exists, and nil
- // otherwise.
- GetActivityStreamsTo() vocab.ActivityStreamsToProperty
- // GetActivityStreamsAttributedTo returns the "attributedTo" property if
- // it exists, and nil otherwise.
- GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty
- // GetActivityStreamsObject returns the "object" property if it exists,
- // and nil otherwise.
- GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty
- // SetActivityStreamsActor sets the "actor" property.
- SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty)
- // SetActivityStreamsObject sets the "object" property.
- SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty)
- // SetActivityStreamsTo sets the "to" property.
- SetActivityStreamsTo(i vocab.ActivityStreamsToProperty)
- // SetActivityStreamsBto sets the "bto" property.
- SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty)
- // SetActivityStreamsBcc sets the "bcc" property.
- SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty)
- // SetActivityStreamsAttributedTo sets the "attributedTo" property.
- SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty)
-}
diff --git a/vendor/github.com/go-fed/activity/pub/actor.go b/vendor/github.com/go-fed/activity/pub/actor.go
deleted file mode 100644
index c9cac28b4..000000000
--- a/vendor/github.com/go-fed/activity/pub/actor.go
+++ /dev/null
@@ -1,127 +0,0 @@
-package pub
-
-import (
- "context"
- "github.com/go-fed/activity/streams/vocab"
- "net/http"
- "net/url"
-)
-
-// Actor represents ActivityPub's actor concept. It conceptually has an inbox
-// and outbox that receives either a POST or GET request, which triggers side
-// effects in the federating application.
-//
-// An Actor within an application may federate server-to-server (Federation
-// Protocol), client-to-server (Social API), or both. The Actor represents the
-// server in either use case.
-//
-// An actor can be created by calling NewSocialActor (only the Social Protocol
-// is supported), NewFederatingActor (only the Federating Protocol is
-// supported), NewActor (both are supported), or NewCustomActor (neither are).
-//
-// Not all Actors have the same behaviors depending on the constructor used to
-// create them. Refer to the constructor's documentation to determine the exact
-// behavior of the Actor on an application.
-//
-// The behaviors documented here are common to all Actors returned by any
-// constructor.
-type Actor interface {
- // PostInbox returns true if the request was handled as an ActivityPub
- // POST to an actor's inbox. If false, the request was not an
- // ActivityPub request and may still be handled by the caller in
- // another way, such as serving a web page.
- //
- // If the error is nil, then the ResponseWriter's headers and response
- // has already been written. If a non-nil error is returned, then no
- // response has been written.
- //
- // If the Actor was constructed with the Federated Protocol enabled,
- // side effects will occur.
- //
- // If the Federated Protocol is not enabled, writes the
- // http.StatusMethodNotAllowed status code in the response. No side
- // effects occur.
- //
- // The request and data of your application will be interpreted as
- // having an HTTPS protocol scheme.
- PostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error)
- // PostInboxScheme is similar to PostInbox, except clients are able to
- // specify which protocol scheme to handle the incoming request and the
- // data stored within the application (HTTP, HTTPS, etc).
- PostInboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error)
- // GetInbox returns true if the request was handled as an ActivityPub
- // GET to an actor's inbox. If false, the request was not an ActivityPub
- // request and may still be handled by the caller in another way, such
- // as serving a web page.
- //
- // If the error is nil, then the ResponseWriter's headers and response
- // has already been written. If a non-nil error is returned, then no
- // response has been written.
- //
- // If the request is an ActivityPub request, the Actor will defer to the
- // application to determine the correct authorization of the request and
- // the resulting OrderedCollection to respond with. The Actor handles
- // serializing this OrderedCollection and responding with the correct
- // headers and http.StatusOK.
- GetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error)
- // PostOutbox returns true if the request was handled as an ActivityPub
- // POST to an actor's outbox. If false, the request was not an
- // ActivityPub request and may still be handled by the caller in another
- // way, such as serving a web page.
- //
- // If the error is nil, then the ResponseWriter's headers and response
- // has already been written. If a non-nil error is returned, then no
- // response has been written.
- //
- // If the Actor was constructed with the Social Protocol enabled, side
- // effects will occur.
- //
- // If the Social Protocol is not enabled, writes the
- // http.StatusMethodNotAllowed status code in the response. No side
- // effects occur.
- //
- // If the Social and Federated Protocol are both enabled, it will handle
- // the side effects of receiving an ActivityStream Activity, and then
- // federate the Activity to peers.
- //
- // The request will be interpreted as having an HTTPS scheme.
- PostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error)
- // PostOutboxScheme is similar to PostOutbox, except clients are able to
- // specify which protocol scheme to handle the incoming request and the
- // data stored within the application (HTTP, HTTPS, etc).
- PostOutboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error)
- // GetOutbox returns true if the request was handled as an ActivityPub
- // GET to an actor's outbox. If false, the request was not an
- // ActivityPub request.
- //
- // If the error is nil, then the ResponseWriter's headers and response
- // has already been written. If a non-nil error is returned, then no
- // response has been written.
- //
- // If the request is an ActivityPub request, the Actor will defer to the
- // application to determine the correct authorization of the request and
- // the resulting OrderedCollection to respond with. The Actor handles
- // serializing this OrderedCollection and responding with the correct
- // headers and http.StatusOK.
- GetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error)
-}
-
-// FederatingActor is an Actor that allows programmatically delivering an
-// Activity to a federating peer.
-type FederatingActor interface {
- Actor
- // Send a federated activity.
- //
- // The provided url must be the outbox of the sender. All processing of
- // the activity occurs similarly to the C2S flow:
- // - If t is not an Activity, it is wrapped in a Create activity.
- // - A new ID is generated for the activity.
- // - The activity is added to the specified outbox.
- // - The activity is prepared and delivered to recipients.
- //
- // Note that this function will only behave as expected if the
- // implementation has been constructed to support federation. This
- // method will guaranteed work for non-custom Actors. For custom actors,
- // care should be used to not call this method if only C2S is supported.
- Send(c context.Context, outbox *url.URL, t vocab.Type) (Activity, error)
-}
diff --git a/vendor/github.com/go-fed/activity/pub/base_actor.go b/vendor/github.com/go-fed/activity/pub/base_actor.go
deleted file mode 100644
index 61192c51b..000000000
--- a/vendor/github.com/go-fed/activity/pub/base_actor.go
+++ /dev/null
@@ -1,494 +0,0 @@
-package pub
-
-import (
- "context"
- "encoding/json"
- "fmt"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
- "io/ioutil"
- "net/http"
- "net/url"
-)
-
-// baseActor must satisfy the Actor interface.
-var _ Actor = &baseActor{}
-
-// baseActor is an application-independent ActivityPub implementation. It does
-// not implement the entire protocol, and relies on a delegate to do so. It
-// only implements the part of the protocol that is side-effect-free, allowing
-// an existing application to write a DelegateActor that glues their application
-// into the ActivityPub world.
-//
-// It is preferred to use a DelegateActor provided by this library, so that the
-// application does not need to worry about the ActivityPub implementation.
-type baseActor struct {
- // delegate contains application-specific delegation logic.
- delegate DelegateActor
- // enableSocialProtocol enables or disables the Social API, the client to
- // server part of ActivityPub. Useful if permitting remote clients to
- // act on behalf of the users of the client application.
- enableSocialProtocol bool
- // enableFederatedProtocol enables or disables the Federated Protocol, or the
- // server to server part of ActivityPub. Useful to permit integrating
- // with the rest of the federative web.
- enableFederatedProtocol bool
- // clock simply tracks the current time.
- clock Clock
-}
-
-// baseActorFederating must satisfy the FederatingActor interface.
-var _ FederatingActor = &baseActorFederating{}
-
-// baseActorFederating is a baseActor that also satisfies the FederatingActor
-// interface.
-//
-// The baseActor is preserved as an Actor which will not successfully cast to a
-// FederatingActor.
-type baseActorFederating struct {
- baseActor
-}
-
-// NewSocialActor builds a new Actor concept that handles only the Social
-// Protocol part of ActivityPub.
-//
-// This Actor can be created once in an application and reused to handle
-// multiple requests concurrently and for different endpoints.
-//
-// It leverages as much of go-fed as possible to ensure the implementation is
-// compliant with the ActivityPub specification, while providing enough freedom
-// to be productive without shooting one's self in the foot.
-//
-// Do not try to use NewSocialActor and NewFederatingActor together to cover
-// both the Social and Federating parts of the protocol. Instead, use NewActor.
-func NewSocialActor(c CommonBehavior,
- c2s SocialProtocol,
- db Database,
- clock Clock) Actor {
- return &baseActor{
- delegate: &sideEffectActor{
- common: c,
- c2s: c2s,
- db: db,
- clock: clock,
- },
- enableSocialProtocol: true,
- clock: clock,
- }
-}
-
-// NewFederatingActor builds a new Actor concept that handles only the Federating
-// Protocol part of ActivityPub.
-//
-// This Actor can be created once in an application and reused to handle
-// multiple requests concurrently and for different endpoints.
-//
-// It leverages as much of go-fed as possible to ensure the implementation is
-// compliant with the ActivityPub specification, while providing enough freedom
-// to be productive without shooting one's self in the foot.
-//
-// Do not try to use NewSocialActor and NewFederatingActor together to cover
-// both the Social and Federating parts of the protocol. Instead, use NewActor.
-func NewFederatingActor(c CommonBehavior,
- s2s FederatingProtocol,
- db Database,
- clock Clock) FederatingActor {
- return &baseActorFederating{
- baseActor{
- delegate: &sideEffectActor{
- common: c,
- s2s: s2s,
- db: db,
- clock: clock,
- },
- enableFederatedProtocol: true,
- clock: clock,
- },
- }
-}
-
-// NewActor builds a new Actor concept that handles both the Social and
-// Federating Protocol parts of ActivityPub.
-//
-// This Actor can be created once in an application and reused to handle
-// multiple requests concurrently and for different endpoints.
-//
-// It leverages as much of go-fed as possible to ensure the implementation is
-// compliant with the ActivityPub specification, while providing enough freedom
-// to be productive without shooting one's self in the foot.
-func NewActor(c CommonBehavior,
- c2s SocialProtocol,
- s2s FederatingProtocol,
- db Database,
- clock Clock) FederatingActor {
- return &baseActorFederating{
- baseActor{
- delegate: &sideEffectActor{
- common: c,
- c2s: c2s,
- s2s: s2s,
- db: db,
- clock: clock,
- },
- enableSocialProtocol: true,
- enableFederatedProtocol: true,
- clock: clock,
- },
- }
-}
-
-// NewCustomActor allows clients to create a custom ActivityPub implementation
-// for the Social Protocol, Federating Protocol, or both.
-//
-// It still uses the library as a high-level scaffold, which has the benefit of
-// allowing applications to grow into a custom ActivityPub solution without
-// having to refactor the code that passes HTTP requests into the Actor.
-//
-// It is possible to create a DelegateActor that is not ActivityPub compliant.
-// Use with due care.
-func NewCustomActor(delegate DelegateActor,
- enableSocialProtocol, enableFederatedProtocol bool,
- clock Clock) FederatingActor {
- return &baseActorFederating{
- baseActor{
- delegate: delegate,
- enableSocialProtocol: enableSocialProtocol,
- enableFederatedProtocol: enableFederatedProtocol,
- clock: clock,
- },
- }
-}
-
-// PostInbox implements the generic algorithm for handling a POST request to an
-// actor's inbox independent on an application. It relies on a delegate to
-// implement application specific functionality.
-//
-// Only supports serving data with identifiers having the HTTPS scheme.
-func (b *baseActor) PostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) {
- return b.PostInboxScheme(c, w, r, "https")
-}
-
-// PostInbox implements the generic algorithm for handling a POST request to an
-// actor's inbox independent on an application. It relies on a delegate to
-// implement application specific functionality.
-//
-// Specifying the "scheme" allows for retrieving ActivityStreams content with
-// identifiers such as HTTP, HTTPS, or other protocol schemes.
-func (b *baseActor) PostInboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) {
- // Do nothing if it is not an ActivityPub POST request.
- if !isActivityPubPost(r) {
- return false, nil
- }
- // If the Federated Protocol is not enabled, then this endpoint is not
- // enabled.
- if !b.enableFederatedProtocol {
- w.WriteHeader(http.StatusMethodNotAllowed)
- return true, nil
- }
- // Check the peer request is authentic.
- c, authenticated, err := b.delegate.AuthenticatePostInbox(c, w, r)
- if err != nil {
- return true, err
- } else if !authenticated {
- return true, nil
- }
- // Begin processing the request, but have not yet applied
- // authorization (ex: blocks). Obtain the activity reject unknown
- // activities.
- raw, err := ioutil.ReadAll(r.Body)
- if err != nil {
- return true, err
- }
- var m map[string]interface{}
- if err = json.Unmarshal(raw, &m); err != nil {
- return true, err
- }
- asValue, err := streams.ToType(c, m)
- if err != nil && !streams.IsUnmatchedErr(err) {
- return true, err
- } else if streams.IsUnmatchedErr(err) {
- // Respond with bad request -- we do not understand the type.
- w.WriteHeader(http.StatusBadRequest)
- return true, nil
- }
- activity, ok := asValue.(Activity)
- if !ok {
- return true, fmt.Errorf("activity streams value is not an Activity: %T", asValue)
- }
- if activity.GetJSONLDId() == nil {
- w.WriteHeader(http.StatusBadRequest)
- return true, nil
- }
- // Allow server implementations to set context data with a hook.
- c, err = b.delegate.PostInboxRequestBodyHook(c, r, activity)
- if err != nil {
- return true, err
- }
- // Check authorization of the activity.
- authorized, err := b.delegate.AuthorizePostInbox(c, w, activity)
- if err != nil {
- return true, err
- } else if !authorized {
- return true, nil
- }
- // Post the activity to the actor's inbox and trigger side effects for
- // that particular Activity type. It is up to the delegate to resolve
- // the given map.
- inboxId := requestId(r, scheme)
- err = b.delegate.PostInbox(c, inboxId, activity)
- if err != nil {
- // Special case: We know it is a bad request if the object or
- // target properties needed to be populated, but weren't.
- //
- // Send the rejection to the peer.
- if err == ErrObjectRequired || err == ErrTargetRequired {
- w.WriteHeader(http.StatusBadRequest)
- return true, nil
- }
- return true, err
- }
- // Our side effects are complete, now delegate determining whether to
- // do inbox forwarding, as well as the action to do it.
- if err := b.delegate.InboxForwarding(c, inboxId, activity); err != nil {
- return true, err
- }
- // Request has been processed. Begin responding to the request.
- //
- // Simply respond with an OK status to the peer.
- w.WriteHeader(http.StatusOK)
- return true, nil
-}
-
-// GetInbox implements the generic algorithm for handling a GET request to an
-// actor's inbox independent on an application. It relies on a delegate to
-// implement application specific functionality.
-func (b *baseActor) GetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) {
- // Do nothing if it is not an ActivityPub GET request.
- if !isActivityPubGet(r) {
- return false, nil
- }
- // Delegate authenticating and authorizing the request.
- c, authenticated, err := b.delegate.AuthenticateGetInbox(c, w, r)
- if err != nil {
- return true, err
- } else if !authenticated {
- return true, nil
- }
- // Everything is good to begin processing the request.
- oc, err := b.delegate.GetInbox(c, r)
- if err != nil {
- return true, err
- }
- // Deduplicate the 'orderedItems' property by ID.
- err = dedupeOrderedItems(oc)
- if err != nil {
- return true, err
- }
- // Request has been processed. Begin responding to the request.
- //
- // Serialize the OrderedCollection.
- m, err := streams.Serialize(oc)
- if err != nil {
- return true, err
- }
- raw, err := json.Marshal(m)
- if err != nil {
- return true, err
- }
- // Write the response.
- addResponseHeaders(w.Header(), b.clock, raw)
- w.WriteHeader(http.StatusOK)
- n, err := w.Write(raw)
- if err != nil {
- return true, err
- } else if n != len(raw) {
- return true, fmt.Errorf("ResponseWriter.Write wrote %d of %d bytes", n, len(raw))
- }
- return true, nil
-}
-
-// PostOutbox implements the generic algorithm for handling a POST request to an
-// actor's outbox independent on an application. It relies on a delegate to
-// implement application specific functionality.
-//
-// Only supports serving data with identifiers having the HTTPS scheme.
-func (b *baseActor) PostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) {
- return b.PostOutboxScheme(c, w, r, "https")
-}
-
-// PostOutbox implements the generic algorithm for handling a POST request to an
-// actor's outbox independent on an application. It relies on a delegate to
-// implement application specific functionality.
-//
-// Specifying the "scheme" allows for retrieving ActivityStreams content with
-// identifiers such as HTTP, HTTPS, or other protocol schemes.
-func (b *baseActor) PostOutboxScheme(c context.Context, w http.ResponseWriter, r *http.Request, scheme string) (bool, error) {
- // Do nothing if it is not an ActivityPub POST request.
- if !isActivityPubPost(r) {
- return false, nil
- }
- // If the Social API is not enabled, then this endpoint is not enabled.
- if !b.enableSocialProtocol {
- w.WriteHeader(http.StatusMethodNotAllowed)
- return true, nil
- }
- // Delegate authenticating and authorizing the request.
- c, authenticated, err := b.delegate.AuthenticatePostOutbox(c, w, r)
- if err != nil {
- return true, err
- } else if !authenticated {
- return true, nil
- }
- // Everything is good to begin processing the request.
- raw, err := ioutil.ReadAll(r.Body)
- if err != nil {
- return true, err
- }
- var m map[string]interface{}
- if err = json.Unmarshal(raw, &m); err != nil {
- return true, err
- }
- // Note that converting to a Type will NOT successfully convert types
- // not known to go-fed. This prevents accidentally wrapping an Activity
- // type unknown to go-fed in a Create below. Instead,
- // streams.ErrUnhandledType will be returned here.
- asValue, err := streams.ToType(c, m)
- if err != nil && !streams.IsUnmatchedErr(err) {
- return true, err
- } else if streams.IsUnmatchedErr(err) {
- // Respond with bad request -- we do not understand the type.
- w.WriteHeader(http.StatusBadRequest)
- return true, nil
- }
- // Allow server implementations to set context data with a hook.
- c, err = b.delegate.PostOutboxRequestBodyHook(c, r, asValue)
- if err != nil {
- return true, err
- }
- // The HTTP request steps are complete, complete the rest of the outbox
- // and delivery process.
- outboxId := requestId(r, scheme)
- activity, err := b.deliver(c, outboxId, asValue, m)
- // Special case: We know it is a bad request if the object or
- // target properties needed to be populated, but weren't.
- //
- // Send the rejection to the client.
- if err == ErrObjectRequired || err == ErrTargetRequired {
- w.WriteHeader(http.StatusBadRequest)
- return true, nil
- } else if err != nil {
- return true, err
- }
- // Respond to the request with the new Activity's IRI location.
- w.Header().Set(locationHeader, activity.GetJSONLDId().Get().String())
- w.WriteHeader(http.StatusCreated)
- return true, nil
-}
-
-// GetOutbox implements the generic algorithm for handling a Get request to an
-// actor's outbox independent on an application. It relies on a delegate to
-// implement application specific functionality.
-func (b *baseActor) GetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (bool, error) {
- // Do nothing if it is not an ActivityPub GET request.
- if !isActivityPubGet(r) {
- return false, nil
- }
- // Delegate authenticating and authorizing the request.
- c, authenticated, err := b.delegate.AuthenticateGetOutbox(c, w, r)
- if err != nil {
- return true, err
- } else if !authenticated {
- return true, nil
- }
- // Everything is good to begin processing the request.
- oc, err := b.delegate.GetOutbox(c, r)
- if err != nil {
- return true, err
- }
- // Request has been processed. Begin responding to the request.
- //
- // Serialize the OrderedCollection.
- m, err := streams.Serialize(oc)
- if err != nil {
- return true, err
- }
- raw, err := json.Marshal(m)
- if err != nil {
- return true, err
- }
- // Write the response.
- addResponseHeaders(w.Header(), b.clock, raw)
- w.WriteHeader(http.StatusOK)
- n, err := w.Write(raw)
- if err != nil {
- return true, err
- } else if n != len(raw) {
- return true, fmt.Errorf("ResponseWriter.Write wrote %d of %d bytes", n, len(raw))
- }
- return true, nil
-}
-
-// deliver delegates all outbox handling steps and optionally will federate the
-// activity if the federated protocol is enabled.
-//
-// This function is not exported so an Actor that only supports C2S cannot be
-// type casted to a FederatingActor. It doesn't exactly fit the Send method
-// signature anyways.
-//
-// Note: 'm' is nilable.
-func (b *baseActor) deliver(c context.Context, outbox *url.URL, asValue vocab.Type, m map[string]interface{}) (activity Activity, err error) {
- // If the value is not an Activity or type extending from Activity, then
- // we need to wrap it in a Create Activity.
- if !streams.IsOrExtendsActivityStreamsActivity(asValue) {
- asValue, err = b.delegate.WrapInCreate(c, asValue, outbox)
- if err != nil {
- return
- }
- }
- // At this point, this should be a safe conversion. If this error is
- // triggered, then there is either a bug in the delegation of
- // WrapInCreate, behavior is not lining up in the generated ExtendedBy
- // code, or something else is incorrect with the type system.
- var ok bool
- activity, ok = asValue.(Activity)
- if !ok {
- err = fmt.Errorf("activity streams value is not an Activity: %T", asValue)
- return
- }
- // Delegate generating new IDs for the activity and all new objects.
- if err = b.delegate.AddNewIDs(c, activity); err != nil {
- return
- }
- // Post the activity to the actor's outbox and trigger side effects for
- // that particular Activity type.
- //
- // Since 'm' is nil-able and side effects may need access to literal nil
- // values, such as for Update activities, ensure 'm' is non-nil.
- if m == nil {
- m, err = asValue.Serialize()
- if err != nil {
- return
- }
- }
- deliverable, err := b.delegate.PostOutbox(c, activity, outbox, m)
- if err != nil {
- return
- }
- // Request has been processed and all side effects internal to this
- // application server have finished. Begin side effects affecting other
- // servers and/or the client who sent this request.
- //
- // If we are federating and the type is a deliverable one, then deliver
- // the activity to federating peers.
- if b.enableFederatedProtocol && deliverable {
- if err = b.delegate.Deliver(c, outbox, activity); err != nil {
- return
- }
- }
- return
-}
-
-// Send is programmatically accessible if the federated protocol is enabled.
-func (b *baseActorFederating) Send(c context.Context, outbox *url.URL, t vocab.Type) (Activity, error) {
- return b.deliver(c, outbox, t, nil)
-}
diff --git a/vendor/github.com/go-fed/activity/pub/common_behavior.go b/vendor/github.com/go-fed/activity/pub/common_behavior.go
deleted file mode 100644
index c4a701560..000000000
--- a/vendor/github.com/go-fed/activity/pub/common_behavior.go
+++ /dev/null
@@ -1,89 +0,0 @@
-package pub
-
-import (
- "context"
- "github.com/go-fed/activity/streams/vocab"
- "net/http"
- "net/url"
-)
-
-// Common contains functions required for both the Social API and Federating
-// Protocol.
-//
-// It is passed to the library as a dependency injection from the client
-// application.
-type CommonBehavior interface {
- // AuthenticateGetInbox delegates the authentication of a GET to an
- // inbox.
- //
- // Always called, regardless whether the Federated Protocol or Social
- // API is enabled.
- //
- // If an error is returned, it is passed back to the caller of
- // GetInbox. In this case, the implementation must not write a
- // response to the ResponseWriter as is expected that the client will
- // do so when handling the error. The 'authenticated' is ignored.
- //
- // If no error is returned, but authentication or authorization fails,
- // then authenticated must be false and error nil. It is expected that
- // the implementation handles writing to the ResponseWriter in this
- // case.
- //
- // Finally, if the authentication and authorization succeeds, then
- // authenticated must be true and error nil. The request will continue
- // to be processed.
- AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
- // AuthenticateGetOutbox delegates the authentication of a GET to an
- // outbox.
- //
- // Always called, regardless whether the Federated Protocol or Social
- // API is enabled.
- //
- // If an error is returned, it is passed back to the caller of
- // GetOutbox. In this case, the implementation must not write a
- // response to the ResponseWriter as is expected that the client will
- // do so when handling the error. The 'authenticated' is ignored.
- //
- // If no error is returned, but authentication or authorization fails,
- // then authenticated must be false and error nil. It is expected that
- // the implementation handles writing to the ResponseWriter in this
- // case.
- //
- // Finally, if the authentication and authorization succeeds, then
- // authenticated must be true and error nil. The request will continue
- // to be processed.
- AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
- // GetOutbox returns the OrderedCollection inbox of the actor for this
- // context. It is up to the implementation to provide the correct
- // collection for the kind of authorization given in the request.
- //
- // AuthenticateGetOutbox will be called prior to this.
- //
- // Always called, regardless whether the Federated Protocol or Social
- // API is enabled.
- GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // NewTransport returns a new Transport on behalf of a specific actor.
- //
- // The actorBoxIRI will be either the inbox or outbox of an actor who is
- // attempting to do the dereferencing or delivery. Any authentication
- // scheme applied on the request must be based on this actor. The
- // request must contain some sort of credential of the user, such as a
- // HTTP Signature.
- //
- // The gofedAgent passed in should be used by the Transport
- // implementation in the User-Agent, as well as the application-specific
- // user agent string. The gofedAgent will indicate this library's use as
- // well as the library's version number.
- //
- // Any server-wide rate-limiting that needs to occur should happen in a
- // Transport implementation. This factory function allows this to be
- // created, so peer servers are not DOS'd.
- //
- // Any retry logic should also be handled by the Transport
- // implementation.
- //
- // Note that the library will not maintain a long-lived pointer to the
- // returned Transport so that any private credentials are able to be
- // garbage collected.
- NewTransport(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error)
-}
diff --git a/vendor/github.com/go-fed/activity/pub/database.go b/vendor/github.com/go-fed/activity/pub/database.go
deleted file mode 100644
index 0c2024e6b..000000000
--- a/vendor/github.com/go-fed/activity/pub/database.go
+++ /dev/null
@@ -1,139 +0,0 @@
-package pub
-
-import (
- "context"
- "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-type Database interface {
- // Lock takes a lock for the object at the specified id. If an error
- // is returned, the lock must not have been taken.
- //
- // The lock must be able to succeed for an id that does not exist in
- // the database. This means acquiring the lock does not guarantee the
- // entry exists in the database.
- //
- // Locks are encouraged to be lightweight and in the Go layer, as some
- // processes require tight loops acquiring and releasing locks.
- //
- // Used to ensure race conditions in multiple requests do not occur.
- Lock(c context.Context, id *url.URL) error
- // Unlock makes the lock for the object at the specified id available.
- // If an error is returned, the lock must have still been freed.
- //
- // Used to ensure race conditions in multiple requests do not occur.
- Unlock(c context.Context, id *url.URL) error
- // InboxContains returns true if the OrderedCollection at 'inbox'
- // contains the specified 'id'.
- //
- // The library makes this call only after acquiring a lock first.
- InboxContains(c context.Context, inbox, id *url.URL) (contains bool, err error)
- // GetInbox returns the first ordered collection page of the outbox at
- // the specified IRI, for prepending new items.
- //
- // The library makes this call only after acquiring a lock first.
- GetInbox(c context.Context, inboxIRI *url.URL) (inbox vocab.ActivityStreamsOrderedCollectionPage, err error)
- // SetInbox saves the inbox value given from GetInbox, with new items
- // prepended. Note that the new items must not be added as independent
- // database entries. Separate calls to Create will do that.
- //
- // The library makes this call only after acquiring a lock first.
- SetInbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error
- // Owns returns true if the database has an entry for the IRI and it
- // exists in the database.
- //
- // The library makes this call only after acquiring a lock first.
- Owns(c context.Context, id *url.URL) (owns bool, err error)
- // ActorForOutbox fetches the actor's IRI for the given outbox IRI.
- //
- // The library makes this call only after acquiring a lock first.
- ActorForOutbox(c context.Context, outboxIRI *url.URL) (actorIRI *url.URL, err error)
- // ActorForInbox fetches the actor's IRI for the given outbox IRI.
- //
- // The library makes this call only after acquiring a lock first.
- ActorForInbox(c context.Context, inboxIRI *url.URL) (actorIRI *url.URL, err error)
- // OutboxForInbox fetches the corresponding actor's outbox IRI for the
- // actor's inbox IRI.
- //
- // The library makes this call only after acquiring a lock first.
- OutboxForInbox(c context.Context, inboxIRI *url.URL) (outboxIRI *url.URL, err error)
- // Exists returns true if the database has an entry for the specified
- // id. It may not be owned by this application instance.
- //
- // The library makes this call only after acquiring a lock first.
- Exists(c context.Context, id *url.URL) (exists bool, err error)
- // Get returns the database entry for the specified id.
- //
- // The library makes this call only after acquiring a lock first.
- Get(c context.Context, id *url.URL) (value vocab.Type, err error)
- // Create adds a new entry to the database which must be able to be
- // keyed by its id.
- //
- // Note that Activity values received from federated peers may also be
- // created in the database this way if the Federating Protocol is
- // enabled. The client may freely decide to store only the id instead of
- // the entire value.
- //
- // The library makes this call only after acquiring a lock first.
- //
- // Under certain conditions and network activities, Create may be called
- // multiple times for the same ActivityStreams object.
- Create(c context.Context, asType vocab.Type) error
- // Update sets an existing entry to the database based on the value's
- // id.
- //
- // Note that Activity values received from federated peers may also be
- // updated in the database this way if the Federating Protocol is
- // enabled. The client may freely decide to store only the id instead of
- // the entire value.
- //
- // The library makes this call only after acquiring a lock first.
- Update(c context.Context, asType vocab.Type) error
- // Delete removes the entry with the given id.
- //
- // Delete is only called for federated objects. Deletes from the Social
- // Protocol instead call Update to create a Tombstone.
- //
- // The library makes this call only after acquiring a lock first.
- Delete(c context.Context, id *url.URL) error
- // GetOutbox returns the first ordered collection page of the outbox
- // at the specified IRI, for prepending new items.
- //
- // The library makes this call only after acquiring a lock first.
- GetOutbox(c context.Context, outboxIRI *url.URL) (outbox vocab.ActivityStreamsOrderedCollectionPage, err error)
- // SetOutbox saves the outbox value given from GetOutbox, with new items
- // prepended. Note that the new items must not be added as independent
- // database entries. Separate calls to Create will do that.
- //
- // The library makes this call only after acquiring a lock first.
- SetOutbox(c context.Context, outbox vocab.ActivityStreamsOrderedCollectionPage) error
- // NewID creates a new IRI id for the provided activity or object. The
- // implementation does not need to set the 'id' property and simply
- // needs to determine the value.
- //
- // The go-fed library will handle setting the 'id' property on the
- // activity or object provided with the value returned.
- NewID(c context.Context, t vocab.Type) (id *url.URL, err error)
- // Followers obtains the Followers Collection for an actor with the
- // given id.
- //
- // If modified, the library will then call Update.
- //
- // The library makes this call only after acquiring a lock first.
- Followers(c context.Context, actorIRI *url.URL) (followers vocab.ActivityStreamsCollection, err error)
- // Following obtains the Following Collection for an actor with the
- // given id.
- //
- // If modified, the library will then call Update.
- //
- // The library makes this call only after acquiring a lock first.
- Following(c context.Context, actorIRI *url.URL) (following vocab.ActivityStreamsCollection, err error)
- // Liked obtains the Liked Collection for an actor with the
- // given id.
- //
- // If modified, the library will then call Update.
- //
- // The library makes this call only after acquiring a lock first.
- Liked(c context.Context, actorIRI *url.URL) (liked vocab.ActivityStreamsCollection, err error)
-}
diff --git a/vendor/github.com/go-fed/activity/pub/delegate_actor.go b/vendor/github.com/go-fed/activity/pub/delegate_actor.go
deleted file mode 100644
index 03465abaa..000000000
--- a/vendor/github.com/go-fed/activity/pub/delegate_actor.go
+++ /dev/null
@@ -1,248 +0,0 @@
-package pub
-
-import (
- "context"
- "github.com/go-fed/activity/streams/vocab"
- "net/http"
- "net/url"
-)
-
-// DelegateActor contains the detailed interface an application must satisfy in
-// order to implement the ActivityPub specification.
-//
-// Note that an implementation of this interface is implicitly provided in the
-// calls to NewActor, NewSocialActor, and NewFederatingActor.
-//
-// Implementing the DelegateActor requires familiarity with the ActivityPub
-// specification because it does not a strong enough abstraction for the client
-// application to ignore the ActivityPub spec. It is very possible to implement
-// this interface and build a foot-gun that trashes the fediverse without being
-// ActivityPub compliant. Please use with due consideration.
-//
-// Alternatively, build an application that uses the parts of the pub library
-// that do not require implementing a DelegateActor so that the ActivityPub
-// implementation is completely provided out of the box.
-type DelegateActor interface {
- // Hook callback after parsing the request body for a federated request
- // to the Actor's inbox.
- //
- // Can be used to set contextual information based on the Activity
- // received.
- //
- // Only called if the Federated Protocol is enabled.
- //
- // Warning: Neither authentication nor authorization has taken place at
- // this time. Doing anything beyond setting contextual information is
- // strongly discouraged.
- //
- // If an error is returned, it is passed back to the caller of
- // PostInbox. In this case, the DelegateActor implementation must not
- // write a response to the ResponseWriter as is expected that the caller
- // to PostInbox will do so when handling the error.
- PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error)
- // Hook callback after parsing the request body for a client request
- // to the Actor's outbox.
- //
- // Can be used to set contextual information based on the
- // ActivityStreams object received.
- //
- // Only called if the Social API is enabled.
- //
- // Warning: Neither authentication nor authorization has taken place at
- // this time. Doing anything beyond setting contextual information is
- // strongly discouraged.
- //
- // If an error is returned, it is passed back to the caller of
- // PostOutbox. In this case, the DelegateActor implementation must not
- // write a response to the ResponseWriter as is expected that the caller
- // to PostOutbox will do so when handling the error.
- PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error)
- // AuthenticatePostInbox delegates the authentication of a POST to an
- // inbox.
- //
- // Only called if the Federated Protocol is enabled.
- //
- // If an error is returned, it is passed back to the caller of
- // PostInbox. In this case, the implementation must not write a
- // response to the ResponseWriter as is expected that the client will
- // do so when handling the error. The 'authenticated' is ignored.
- //
- // If no error is returned, but authentication or authorization fails,
- // then authenticated must be false and error nil. It is expected that
- // the implementation handles writing to the ResponseWriter in this
- // case.
- //
- // Finally, if the authentication and authorization succeeds, then
- // authenticated must be true and error nil. The request will continue
- // to be processed.
- AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
- // AuthenticateGetInbox delegates the authentication of a GET to an
- // inbox.
- //
- // Always called, regardless whether the Federated Protocol or Social
- // API is enabled.
- //
- // If an error is returned, it is passed back to the caller of
- // GetInbox. In this case, the implementation must not write a
- // response to the ResponseWriter as is expected that the client will
- // do so when handling the error. The 'authenticated' is ignored.
- //
- // If no error is returned, but authentication or authorization fails,
- // then authenticated must be false and error nil. It is expected that
- // the implementation handles writing to the ResponseWriter in this
- // case.
- //
- // Finally, if the authentication and authorization succeeds, then
- // authenticated must be true and error nil. The request will continue
- // to be processed.
- AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
- // AuthorizePostInbox delegates the authorization of an activity that
- // has been sent by POST to an inbox.
- //
- // Only called if the Federated Protocol is enabled.
- //
- // If an error is returned, it is passed back to the caller of
- // PostInbox. In this case, the implementation must not write a
- // response to the ResponseWriter as is expected that the client will
- // do so when handling the error. The 'authorized' is ignored.
- //
- // If no error is returned, but authorization fails, then authorized
- // must be false and error nil. It is expected that the implementation
- // handles writing to the ResponseWriter in this case.
- //
- // Finally, if the authentication and authorization succeeds, then
- // authorized must be true and error nil. The request will continue
- // to be processed.
- AuthorizePostInbox(c context.Context, w http.ResponseWriter, activity Activity) (authorized bool, err error)
- // PostInbox delegates the side effects of adding to the inbox and
- // determining if it is a request that should be blocked.
- //
- // Only called if the Federated Protocol is enabled.
- //
- // As a side effect, PostInbox sets the federated data in the inbox, but
- // not on its own in the database, as InboxForwarding (which is called
- // later) must decide whether it has seen this activity before in order
- // to determine whether to do the forwarding algorithm.
- //
- // If the error is ErrObjectRequired or ErrTargetRequired, then a Bad
- // Request status is sent in the response.
- PostInbox(c context.Context, inboxIRI *url.URL, activity Activity) error
- // InboxForwarding delegates inbox forwarding logic when a POST request
- // is received in the Actor's inbox.
- //
- // Only called if the Federated Protocol is enabled.
- //
- // The delegate is responsible for determining whether to do the inbox
- // forwarding, as well as actually conducting it if it determines it
- // needs to.
- //
- // As a side effect, InboxForwarding must set the federated data in the
- // database, independently of the inbox, however it sees fit in order to
- // determine whether it has seen the activity before.
- //
- // The provided url is the inbox of the recipient of the Activity. The
- // Activity is examined for the information about who to inbox forward
- // to.
- //
- // If an error is returned, it is returned to the caller of PostInbox.
- InboxForwarding(c context.Context, inboxIRI *url.URL, activity Activity) error
- // PostOutbox delegates the logic for side effects and adding to the
- // outbox.
- //
- // Always called, regardless whether the Federated Protocol or Social
- // API is enabled. In the case of the Social API being enabled, side
- // effects of the Activity must occur.
- //
- // The delegate is responsible for adding the activity to the database's
- // general storage for independent retrieval, and not just within the
- // actor's outbox.
- //
- // If the error is ErrObjectRequired or ErrTargetRequired, then a Bad
- // Request status is sent in the response.
- //
- // Note that 'rawJSON' is an unfortunate consequence where an 'Update'
- // Activity is the only one that explicitly cares about 'null' values in
- // JSON. Since go-fed does not differentiate between 'null' values and
- // values that are simply not present, the 'rawJSON' map is ONLY needed
- // for this narrow and specific use case.
- PostOutbox(c context.Context, a Activity, outboxIRI *url.URL, rawJSON map[string]interface{}) (deliverable bool, e error)
- // AddNewIDs sets new URL ids on the activity. It also does so for all
- // 'object' properties if the Activity is a Create type.
- //
- // Only called if the Social API is enabled.
- //
- // If an error is returned, it is returned to the caller of PostOutbox.
- AddNewIDs(c context.Context, a Activity) error
- // Deliver sends a federated message. Called only if federation is
- // enabled.
- //
- // Called if the Federated Protocol is enabled.
- //
- // The provided url is the outbox of the sender. The Activity contains
- // the information about the intended recipients.
- //
- // If an error is returned, it is returned to the caller of PostOutbox.
- Deliver(c context.Context, outbox *url.URL, activity Activity) error
- // AuthenticatePostOutbox delegates the authentication and authorization
- // of a POST to an outbox.
- //
- // Only called if the Social API is enabled.
- //
- // If an error is returned, it is passed back to the caller of
- // PostOutbox. In this case, the implementation must not write a
- // response to the ResponseWriter as is expected that the client will
- // do so when handling the error. The 'authenticated' is ignored.
- //
- // If no error is returned, but authentication or authorization fails,
- // then authenticated must be false and error nil. It is expected that
- // the implementation handles writing to the ResponseWriter in this
- // case.
- //
- // Finally, if the authentication and authorization succeeds, then
- // authenticated must be true and error nil. The request will continue
- // to be processed.
- AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
- // AuthenticateGetOutbox delegates the authentication of a GET to an
- // outbox.
- //
- // Always called, regardless whether the Federated Protocol or Social
- // API is enabled.
- //
- // If an error is returned, it is passed back to the caller of
- // GetOutbox. In this case, the implementation must not write a
- // response to the ResponseWriter as is expected that the client will
- // do so when handling the error. The 'authenticated' is ignored.
- //
- // If no error is returned, but authentication or authorization fails,
- // then authenticated must be false and error nil. It is expected that
- // the implementation handles writing to the ResponseWriter in this
- // case.
- //
- // Finally, if the authentication and authorization succeeds, then
- // authenticated must be true and error nil. The request will continue
- // to be processed.
- AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
- // WrapInCreate wraps the provided object in a Create ActivityStreams
- // activity. The provided URL is the actor's outbox endpoint.
- //
- // Only called if the Social API is enabled.
- WrapInCreate(c context.Context, value vocab.Type, outboxIRI *url.URL) (vocab.ActivityStreamsCreate, error)
- // GetOutbox returns the OrderedCollection inbox of the actor for this
- // context. It is up to the implementation to provide the correct
- // collection for the kind of authorization given in the request.
- //
- // AuthenticateGetOutbox will be called prior to this.
- //
- // Always called, regardless whether the Federated Protocol or Social
- // API is enabled.
- GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // GetInbox returns the OrderedCollection inbox of the actor for this
- // context. It is up to the implementation to provide the correct
- // collection for the kind of authorization given in the request.
- //
- // AuthenticateGetInbox will be called prior to this.
- //
- // Always called, regardless whether the Federated Protocol or Social
- // API is enabled.
- GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
diff --git a/vendor/github.com/go-fed/activity/pub/federating_protocol.go b/vendor/github.com/go-fed/activity/pub/federating_protocol.go
deleted file mode 100644
index edb22bc03..000000000
--- a/vendor/github.com/go-fed/activity/pub/federating_protocol.go
+++ /dev/null
@@ -1,124 +0,0 @@
-package pub
-
-import (
- "context"
- "github.com/go-fed/activity/streams/vocab"
- "net/http"
- "net/url"
-)
-
-// FederatingProtocol contains behaviors an application needs to satisfy for the
-// full ActivityPub S2S implementation to be supported by this library.
-//
-// It is only required if the client application wants to support the server-to-
-// server, or federating, protocol.
-//
-// It is passed to the library as a dependency injection from the client
-// application.
-type FederatingProtocol interface {
- // Hook callback after parsing the request body for a federated request
- // to the Actor's inbox.
- //
- // Can be used to set contextual information based on the Activity
- // received.
- //
- // Only called if the Federated Protocol is enabled.
- //
- // Warning: Neither authentication nor authorization has taken place at
- // this time. Doing anything beyond setting contextual information is
- // strongly discouraged.
- //
- // If an error is returned, it is passed back to the caller of
- // PostInbox. In this case, the DelegateActor implementation must not
- // write a response to the ResponseWriter as is expected that the caller
- // to PostInbox will do so when handling the error.
- PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error)
- // AuthenticatePostInbox delegates the authentication of a POST to an
- // inbox.
- //
- // If an error is returned, it is passed back to the caller of
- // PostInbox. In this case, the implementation must not write a
- // response to the ResponseWriter as is expected that the client will
- // do so when handling the error. The 'authenticated' is ignored.
- //
- // If no error is returned, but authentication or authorization fails,
- // then authenticated must be false and error nil. It is expected that
- // the implementation handles writing to the ResponseWriter in this
- // case.
- //
- // Finally, if the authentication and authorization succeeds, then
- // authenticated must be true and error nil. The request will continue
- // to be processed.
- AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
- // Blocked should determine whether to permit a set of actors given by
- // their ids are able to interact with this particular end user due to
- // being blocked or other application-specific logic.
- //
- // If an error is returned, it is passed back to the caller of
- // PostInbox.
- //
- // If no error is returned, but authentication or authorization fails,
- // then blocked must be true and error nil. An http.StatusForbidden
- // will be written in the wresponse.
- //
- // Finally, if the authentication and authorization succeeds, then
- // blocked must be false and error nil. The request will continue
- // to be processed.
- Blocked(c context.Context, actorIRIs []*url.URL) (blocked bool, err error)
- // FederatingCallbacks returns the application logic that handles
- // ActivityStreams received from federating peers.
- //
- // Note that certain types of callbacks will be 'wrapped' with default
- // behaviors supported natively by the library. Other callbacks
- // compatible with streams.TypeResolver can be specified by 'other'.
- //
- // For example, setting the 'Create' field in the
- // FederatingWrappedCallbacks lets an application dependency inject
- // additional behaviors they want to take place, including the default
- // behavior supplied by this library. This is guaranteed to be compliant
- // with the ActivityPub Social protocol.
- //
- // To override the default behavior, instead supply the function in
- // 'other', which does not guarantee the application will be compliant
- // with the ActivityPub Social Protocol.
- //
- // Applications are not expected to handle every single ActivityStreams
- // type and extension. The unhandled ones are passed to DefaultCallback.
- FederatingCallbacks(c context.Context) (wrapped FederatingWrappedCallbacks, other []interface{}, err error)
- // DefaultCallback is called for types that go-fed can deserialize but
- // are not handled by the application's callbacks returned in the
- // Callbacks method.
- //
- // Applications are not expected to handle every single ActivityStreams
- // type and extension, so the unhandled ones are passed to
- // DefaultCallback.
- DefaultCallback(c context.Context, activity Activity) error
- // MaxInboxForwardingRecursionDepth determines how deep to search within
- // an activity to determine if inbox forwarding needs to occur.
- //
- // Zero or negative numbers indicate infinite recursion.
- MaxInboxForwardingRecursionDepth(c context.Context) int
- // MaxDeliveryRecursionDepth determines how deep to search within
- // collections owned by peers when they are targeted to receive a
- // delivery.
- //
- // Zero or negative numbers indicate infinite recursion.
- MaxDeliveryRecursionDepth(c context.Context) int
- // FilterForwarding allows the implementation to apply business logic
- // such as blocks, spam filtering, and so on to a list of potential
- // Collections and OrderedCollections of recipients when inbox
- // forwarding has been triggered.
- //
- // The activity is provided as a reference for more intelligent
- // logic to be used, but the implementation must not modify it.
- FilterForwarding(c context.Context, potentialRecipients []*url.URL, a Activity) (filteredRecipients []*url.URL, err error)
- // GetInbox returns the OrderedCollection inbox of the actor for this
- // context. It is up to the implementation to provide the correct
- // collection for the kind of authorization given in the request.
- //
- // AuthenticateGetInbox will be called prior to this.
- //
- // Always called, regardless whether the Federated Protocol or Social
- // API is enabled.
- GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
diff --git a/vendor/github.com/go-fed/activity/pub/federating_wrapped_callbacks.go b/vendor/github.com/go-fed/activity/pub/federating_wrapped_callbacks.go
deleted file mode 100644
index a406acb7a..000000000
--- a/vendor/github.com/go-fed/activity/pub/federating_wrapped_callbacks.go
+++ /dev/null
@@ -1,907 +0,0 @@
-package pub
-
-import (
- "context"
- "encoding/json"
- "fmt"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// OnFollowBehavior enumerates the different default actions that the go-fed
-// library can provide when receiving a Follow Activity from a peer.
-type OnFollowBehavior int
-
-const (
- // OnFollowDoNothing does not take any action when a Follow Activity
- // is received.
- OnFollowDoNothing OnFollowBehavior = iota
- // OnFollowAutomaticallyAccept triggers the side effect of sending an
- // Accept of this Follow request in response.
- OnFollowAutomaticallyAccept
- // OnFollowAutomaticallyAccept triggers the side effect of sending a
- // Reject of this Follow request in response.
- OnFollowAutomaticallyReject
-)
-
-// FederatingWrappedCallbacks lists the callback functions that already have
-// some side effect behavior provided by the pub library.
-//
-// These functions are wrapped for the Federating Protocol.
-type FederatingWrappedCallbacks struct {
- // Create handles additional side effects for the Create ActivityStreams
- // type, specific to the application using go-fed.
- //
- // The wrapping callback for the Federating Protocol ensures the
- // 'object' property is created in the database.
- //
- // Create calls Create for each object in the federated Activity.
- Create func(context.Context, vocab.ActivityStreamsCreate) error
- // Update handles additional side effects for the Update ActivityStreams
- // type, specific to the application using go-fed.
- //
- // The wrapping callback for the Federating Protocol ensures the
- // 'object' property is updated in the database.
- //
- // Update calls Update on the federated entry from the database, with a
- // new value.
- Update func(context.Context, vocab.ActivityStreamsUpdate) error
- // Delete handles additional side effects for the Delete ActivityStreams
- // type, specific to the application using go-fed.
- //
- // Delete removes the federated entry from the database.
- Delete func(context.Context, vocab.ActivityStreamsDelete) error
- // Follow handles additional side effects for the Follow ActivityStreams
- // type, specific to the application using go-fed.
- //
- // The wrapping function can have one of several default behaviors,
- // depending on the value of the OnFollow setting.
- Follow func(context.Context, vocab.ActivityStreamsFollow) error
- // OnFollow determines what action to take for this particular callback
- // if a Follow Activity is handled.
- OnFollow OnFollowBehavior
- // Accept handles additional side effects for the Accept ActivityStreams
- // type, specific to the application using go-fed.
- //
- // The wrapping function determines if this 'Accept' is in response to a
- // 'Follow'. If so, then the 'actor' is added to the original 'actor's
- // 'following' collection.
- //
- // Otherwise, no side effects are done by go-fed.
- Accept func(context.Context, vocab.ActivityStreamsAccept) error
- // Reject handles additional side effects for the Reject ActivityStreams
- // type, specific to the application using go-fed.
- //
- // The wrapping function has no default side effects. However, if this
- // 'Reject' is in response to a 'Follow' then the client MUST NOT go
- // forward with adding the 'actor' to the original 'actor's 'following'
- // collection by the client application.
- Reject func(context.Context, vocab.ActivityStreamsReject) error
- // Add handles additional side effects for the Add ActivityStreams
- // type, specific to the application using go-fed.
- //
- // The wrapping function will add the 'object' IRIs to a specific
- // 'target' collection if the 'target' collection(s) live on this
- // server.
- Add func(context.Context, vocab.ActivityStreamsAdd) error
- // Remove handles additional side effects for the Remove ActivityStreams
- // type, specific to the application using go-fed.
- //
- // The wrapping function will remove all 'object' IRIs from a specific
- // 'target' collection if the 'target' collection(s) live on this
- // server.
- Remove func(context.Context, vocab.ActivityStreamsRemove) error
- // Like handles additional side effects for the Like ActivityStreams
- // type, specific to the application using go-fed.
- //
- // The wrapping function will add the activity to the "likes" collection
- // on all 'object' targets owned by this server.
- Like func(context.Context, vocab.ActivityStreamsLike) error
- // Announce handles additional side effects for the Announce
- // ActivityStreams type, specific to the application using go-fed.
- //
- // The wrapping function will add the activity to the "shares"
- // collection on all 'object' targets owned by this server.
- Announce func(context.Context, vocab.ActivityStreamsAnnounce) error
- // Undo handles additional side effects for the Undo ActivityStreams
- // type, specific to the application using go-fed.
- //
- // The wrapping function ensures the 'actor' on the 'Undo'
- // is be the same as the 'actor' on all Activities being undone.
- // It enforces that the actors on the Undo must correspond to all of the
- // 'object' actors in some manner.
- //
- // It is expected that the application will implement the proper
- // reversal of activities that are being undone.
- Undo func(context.Context, vocab.ActivityStreamsUndo) error
- // Block handles additional side effects for the Block ActivityStreams
- // type, specific to the application using go-fed.
- //
- // The wrapping function provides no default side effects. It simply
- // calls the wrapped function. However, note that Blocks should not be
- // received from a federated peer, as delivering Blocks explicitly
- // deviates from the original ActivityPub specification.
- Block func(context.Context, vocab.ActivityStreamsBlock) error
-
- // Sidechannel data -- this is set at request handling time. These must
- // be set before the callbacks are used.
-
- // db is the Database the FederatingWrappedCallbacks should use.
- db Database
- // inboxIRI is the inboxIRI that is handling this callback.
- inboxIRI *url.URL
- // addNewIds creates new 'id' entries on an activity and its objects if
- // it is a Create activity.
- addNewIds func(c context.Context, activity Activity) error
- // deliver delivers an outgoing message.
- deliver func(c context.Context, outboxIRI *url.URL, activity Activity) error
- // newTransport creates a new Transport.
- newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error)
-}
-
-// callbacks returns the WrappedCallbacks members into a single interface slice
-// for use in streams.Resolver callbacks.
-//
-// If the given functions have a type that collides with the default behavior,
-// then disable our default behavior
-func (w FederatingWrappedCallbacks) callbacks(fns []interface{}) []interface{} {
- enableCreate := true
- enableUpdate := true
- enableDelete := true
- enableFollow := true
- enableAccept := true
- enableReject := true
- enableAdd := true
- enableRemove := true
- enableLike := true
- enableAnnounce := true
- enableUndo := true
- enableBlock := true
- for _, fn := range fns {
- switch fn.(type) {
- default:
- continue
- case func(context.Context, vocab.ActivityStreamsCreate) error:
- enableCreate = false
- case func(context.Context, vocab.ActivityStreamsUpdate) error:
- enableUpdate = false
- case func(context.Context, vocab.ActivityStreamsDelete) error:
- enableDelete = false
- case func(context.Context, vocab.ActivityStreamsFollow) error:
- enableFollow = false
- case func(context.Context, vocab.ActivityStreamsAccept) error:
- enableAccept = false
- case func(context.Context, vocab.ActivityStreamsReject) error:
- enableReject = false
- case func(context.Context, vocab.ActivityStreamsAdd) error:
- enableAdd = false
- case func(context.Context, vocab.ActivityStreamsRemove) error:
- enableRemove = false
- case func(context.Context, vocab.ActivityStreamsLike) error:
- enableLike = false
- case func(context.Context, vocab.ActivityStreamsAnnounce) error:
- enableAnnounce = false
- case func(context.Context, vocab.ActivityStreamsUndo) error:
- enableUndo = false
- case func(context.Context, vocab.ActivityStreamsBlock) error:
- enableBlock = false
- }
- }
- if enableCreate {
- fns = append(fns, w.create)
- }
- if enableUpdate {
- fns = append(fns, w.update)
- }
- if enableDelete {
- fns = append(fns, w.deleteFn)
- }
- if enableFollow {
- fns = append(fns, w.follow)
- }
- if enableAccept {
- fns = append(fns, w.accept)
- }
- if enableReject {
- fns = append(fns, w.reject)
- }
- if enableAdd {
- fns = append(fns, w.add)
- }
- if enableRemove {
- fns = append(fns, w.remove)
- }
- if enableLike {
- fns = append(fns, w.like)
- }
- if enableAnnounce {
- fns = append(fns, w.announce)
- }
- if enableUndo {
- fns = append(fns, w.undo)
- }
- if enableBlock {
- fns = append(fns, w.block)
- }
- return fns
-}
-
-// create implements the federating Create activity side effects.
-func (w FederatingWrappedCallbacks) create(c context.Context, a vocab.ActivityStreamsCreate) error {
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- // Create anonymous loop function to be able to properly scope the defer
- // for the database lock at each iteration.
- loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error {
- t := iter.GetType()
- if t == nil && iter.IsIRI() {
- // Attempt to dereference the IRI instead
- tport, err := w.newTransport(c, w.inboxIRI, goFedUserAgent())
- if err != nil {
- return err
- }
- b, err := tport.Dereference(c, iter.GetIRI())
- if err != nil {
- return err
- }
- var m map[string]interface{}
- if err = json.Unmarshal(b, &m); err != nil {
- return err
- }
- t, err = streams.ToType(c, m)
- if err != nil {
- return err
- }
- } else if t == nil {
- return fmt.Errorf("cannot handle federated create: object is neither a value nor IRI")
- }
- id, err := GetId(t)
- if err != nil {
- return err
- }
- err = w.db.Lock(c, id)
- if err != nil {
- return err
- }
- defer w.db.Unlock(c, id)
- if err := w.db.Create(c, t); err != nil {
- return err
- }
- return nil
- }
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- if err := loopFn(iter); err != nil {
- return err
- }
- }
- if w.Create != nil {
- return w.Create(c, a)
- }
- return nil
-}
-
-// update implements the federating Update activity side effects.
-func (w FederatingWrappedCallbacks) update(c context.Context, a vocab.ActivityStreamsUpdate) error {
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- if err := mustHaveActivityOriginMatchObjects(a); err != nil {
- return err
- }
- // Create anonymous loop function to be able to properly scope the defer
- // for the database lock at each iteration.
- loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error {
- t := iter.GetType()
- if t == nil {
- return fmt.Errorf("update requires an object to be wholly provided")
- }
- id, err := GetId(t)
- if err != nil {
- return err
- }
- err = w.db.Lock(c, id)
- if err != nil {
- return err
- }
- defer w.db.Unlock(c, id)
- if err := w.db.Update(c, t); err != nil {
- return err
- }
- return nil
- }
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- if err := loopFn(iter); err != nil {
- return err
- }
- }
- if w.Update != nil {
- return w.Update(c, a)
- }
- return nil
-}
-
-// deleteFn implements the federating Delete activity side effects.
-func (w FederatingWrappedCallbacks) deleteFn(c context.Context, a vocab.ActivityStreamsDelete) error {
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- if err := mustHaveActivityOriginMatchObjects(a); err != nil {
- return err
- }
- // Create anonymous loop function to be able to properly scope the defer
- // for the database lock at each iteration.
- loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- err = w.db.Lock(c, id)
- if err != nil {
- return err
- }
- defer w.db.Unlock(c, id)
- if err := w.db.Delete(c, id); err != nil {
- return err
- }
- return nil
- }
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- if err := loopFn(iter); err != nil {
- return err
- }
- }
- if w.Delete != nil {
- return w.Delete(c, a)
- }
- return nil
-}
-
-// follow implements the federating Follow activity side effects.
-func (w FederatingWrappedCallbacks) follow(c context.Context, a vocab.ActivityStreamsFollow) error {
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- // Check that we own at least one of the 'object' properties, and ensure
- // it is to the actor that owns this inbox.
- //
- // If not then don't send a response. It was federated to us as an FYI,
- // by mistake, or some other reason.
- if err := w.db.Lock(c, w.inboxIRI); err != nil {
- return err
- }
- // WARNING: Unlock not deferred.
- actorIRI, err := w.db.ActorForInbox(c, w.inboxIRI)
- if err != nil {
- w.db.Unlock(c, w.inboxIRI)
- return err
- }
- w.db.Unlock(c, w.inboxIRI)
- // Unlock must be called by now and every branch above.
- isMe := false
- if w.OnFollow != OnFollowDoNothing {
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- if id.String() == actorIRI.String() {
- isMe = true
- break
- }
- }
- }
- if isMe {
- // Prepare the response.
- var response Activity
- if w.OnFollow == OnFollowAutomaticallyAccept {
- response = streams.NewActivityStreamsAccept()
- } else if w.OnFollow == OnFollowAutomaticallyReject {
- response = streams.NewActivityStreamsReject()
- } else {
- return fmt.Errorf("unknown OnFollowBehavior: %d", w.OnFollow)
- }
- // Set us as the 'actor'.
- me := streams.NewActivityStreamsActorProperty()
- response.SetActivityStreamsActor(me)
- me.AppendIRI(actorIRI)
- // Set the Follow as the 'object' property.
- op := streams.NewActivityStreamsObjectProperty()
- response.SetActivityStreamsObject(op)
- op.AppendActivityStreamsFollow(a)
- // Add all actors on the original Follow to the 'to' property.
- recipients := make([]*url.URL, 0)
- to := streams.NewActivityStreamsToProperty()
- response.SetActivityStreamsTo(to)
- followActors := a.GetActivityStreamsActor()
- for iter := followActors.Begin(); iter != followActors.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- to.AppendIRI(id)
- recipients = append(recipients, id)
- }
- if w.OnFollow == OnFollowAutomaticallyAccept {
- // If automatically accepting, then also update our
- // followers collection with the new actors.
- //
- // If automatically rejecting, do not update the
- // followers collection.
- if err := w.db.Lock(c, actorIRI); err != nil {
- return err
- }
- // WARNING: Unlock not deferred.
- followers, err := w.db.Followers(c, actorIRI)
- if err != nil {
- w.db.Unlock(c, actorIRI)
- return err
- }
- items := followers.GetActivityStreamsItems()
- if items == nil {
- items = streams.NewActivityStreamsItemsProperty()
- followers.SetActivityStreamsItems(items)
- }
- for _, elem := range recipients {
- items.PrependIRI(elem)
- }
- if err = w.db.Update(c, followers); err != nil {
- w.db.Unlock(c, actorIRI)
- return err
- }
- w.db.Unlock(c, actorIRI)
- // Unlock must be called by now and every branch above.
- }
- // Lock without defer!
- w.db.Lock(c, w.inboxIRI)
- outboxIRI, err := w.db.OutboxForInbox(c, w.inboxIRI)
- if err != nil {
- w.db.Unlock(c, w.inboxIRI)
- return err
- }
- w.db.Unlock(c, w.inboxIRI)
- // Everything must be unlocked by now.
- if err := w.addNewIds(c, response); err != nil {
- return err
- } else if err := w.deliver(c, outboxIRI, response); err != nil {
- return err
- }
- }
- if w.Follow != nil {
- return w.Follow(c, a)
- }
- return nil
-}
-
-// accept implements the federating Accept activity side effects.
-func (w FederatingWrappedCallbacks) accept(c context.Context, a vocab.ActivityStreamsAccept) error {
- op := a.GetActivityStreamsObject()
- if op != nil && op.Len() > 0 {
- // Get this actor's id.
- if err := w.db.Lock(c, w.inboxIRI); err != nil {
- return err
- }
- // WARNING: Unlock not deferred.
- actorIRI, err := w.db.ActorForInbox(c, w.inboxIRI)
- if err != nil {
- w.db.Unlock(c, w.inboxIRI)
- return err
- }
- w.db.Unlock(c, w.inboxIRI)
- // Unlock must be called by now and every branch above.
- //
- // Determine if we are in a follow on the 'object' property.
- //
- // TODO: Handle Accept multiple Follow.
- var maybeMyFollowIRI *url.URL
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- t := iter.GetType()
- if t == nil && iter.IsIRI() {
- // Attempt to dereference the IRI instead
- tport, err := w.newTransport(c, w.inboxIRI, goFedUserAgent())
- if err != nil {
- return err
- }
- b, err := tport.Dereference(c, iter.GetIRI())
- if err != nil {
- return err
- }
- var m map[string]interface{}
- if err = json.Unmarshal(b, &m); err != nil {
- return err
- }
- t, err = streams.ToType(c, m)
- if err != nil {
- return err
- }
- } else if t == nil {
- return fmt.Errorf("cannot handle federated create: object is neither a value nor IRI")
- }
- // Ensure it is a Follow.
- if !streams.IsOrExtendsActivityStreamsFollow(t) {
- continue
- }
- follow, ok := t.(Activity)
- if !ok {
- return fmt.Errorf("a Follow in an Accept does not satisfy the Activity interface")
- }
- followId, err := GetId(follow)
- if err != nil {
- return err
- }
- // Ensure that we are one of the actors on the Follow.
- actors := follow.GetActivityStreamsActor()
- for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- if id.String() == actorIRI.String() {
- maybeMyFollowIRI = followId
- break
- }
- }
- // Continue breaking if we found ourselves
- if maybeMyFollowIRI != nil {
- break
- }
- }
- // If we received an Accept whose 'object' is a Follow with an
- // Accept that we sent, add to the following collection.
- if maybeMyFollowIRI != nil {
- // Verify our Follow request exists and the peer didn't
- // fabricate it.
- activityActors := a.GetActivityStreamsActor()
- if activityActors == nil || activityActors.Len() == 0 {
- return fmt.Errorf("an Accept with a Follow has no actors")
- }
- // This may be a duplicate check if we dereferenced the
- // Follow above. TODO: Separate this logic to avoid
- // redundancy.
- //
- // Use an anonymous function to properly scope the
- // database lock, immediately call it.
- err = func() error {
- if err := w.db.Lock(c, maybeMyFollowIRI); err != nil {
- return err
- }
- defer w.db.Unlock(c, maybeMyFollowIRI)
- t, err := w.db.Get(c, maybeMyFollowIRI)
- if err != nil {
- return err
- }
- if !streams.IsOrExtendsActivityStreamsFollow(t) {
- return fmt.Errorf("peer gave an Accept wrapping a Follow but provided a non-Follow id")
- }
- follow, ok := t.(Activity)
- if !ok {
- return fmt.Errorf("a Follow in an Accept does not satisfy the Activity interface")
- }
- // Ensure that we are one of the actors on the Follow.
- ok = false
- actors := follow.GetActivityStreamsActor()
- for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- if id.String() == actorIRI.String() {
- ok = true
- break
- }
- }
- if !ok {
- return fmt.Errorf("peer gave an Accept wrapping a Follow but we are not the actor on that Follow")
- }
- // Build map of original Accept actors
- acceptActors := make(map[string]bool)
- for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- acceptActors[id.String()] = false
- }
- // Verify all actor(s) were on the original Follow.
- followObj := follow.GetActivityStreamsObject()
- for iter := followObj.Begin(); iter != followObj.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- if _, ok := acceptActors[id.String()]; ok {
- acceptActors[id.String()] = true
- }
- }
- for _, found := range acceptActors {
- if !found {
- return fmt.Errorf("peer gave an Accept wrapping a Follow but was not an object in the original Follow")
- }
- }
- return nil
- }()
- if err != nil {
- return err
- }
- // Add the peer to our following collection.
- if err := w.db.Lock(c, actorIRI); err != nil {
- return err
- }
- // WARNING: Unlock not deferred.
- following, err := w.db.Following(c, actorIRI)
- if err != nil {
- w.db.Unlock(c, actorIRI)
- return err
- }
- items := following.GetActivityStreamsItems()
- if items == nil {
- items = streams.NewActivityStreamsItemsProperty()
- following.SetActivityStreamsItems(items)
- }
- for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- w.db.Unlock(c, actorIRI)
- return err
- }
- items.PrependIRI(id)
- }
- if err = w.db.Update(c, following); err != nil {
- w.db.Unlock(c, actorIRI)
- return err
- }
- w.db.Unlock(c, actorIRI)
- // Unlock must be called by now and every branch above.
- }
- }
- if w.Accept != nil {
- return w.Accept(c, a)
- }
- return nil
-}
-
-// reject implements the federating Reject activity side effects.
-func (w FederatingWrappedCallbacks) reject(c context.Context, a vocab.ActivityStreamsReject) error {
- if w.Reject != nil {
- return w.Reject(c, a)
- }
- return nil
-}
-
-// add implements the federating Add activity side effects.
-func (w FederatingWrappedCallbacks) add(c context.Context, a vocab.ActivityStreamsAdd) error {
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- target := a.GetActivityStreamsTarget()
- if target == nil || target.Len() == 0 {
- return ErrTargetRequired
- }
- if err := add(c, op, target, w.db); err != nil {
- return err
- }
- if w.Add != nil {
- return w.Add(c, a)
- }
- return nil
-}
-
-// remove implements the federating Remove activity side effects.
-func (w FederatingWrappedCallbacks) remove(c context.Context, a vocab.ActivityStreamsRemove) error {
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- target := a.GetActivityStreamsTarget()
- if target == nil || target.Len() == 0 {
- return ErrTargetRequired
- }
- if err := remove(c, op, target, w.db); err != nil {
- return err
- }
- if w.Remove != nil {
- return w.Remove(c, a)
- }
- return nil
-}
-
-// like implements the federating Like activity side effects.
-func (w FederatingWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsLike) error {
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- id, err := GetId(a)
- if err != nil {
- return err
- }
- // Create anonymous loop function to be able to properly scope the defer
- // for the database lock at each iteration.
- loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error {
- objId, err := ToId(iter)
- if err != nil {
- return err
- }
- if err := w.db.Lock(c, objId); err != nil {
- return err
- }
- defer w.db.Unlock(c, objId)
- if owns, err := w.db.Owns(c, objId); err != nil {
- return err
- } else if !owns {
- return nil
- }
- t, err := w.db.Get(c, objId)
- if err != nil {
- return err
- }
- l, ok := t.(likeser)
- if !ok {
- return fmt.Errorf("cannot add Like to likes collection for type %T", t)
- }
- // Get 'likes' property on the object, creating default if
- // necessary.
- likes := l.GetActivityStreamsLikes()
- if likes == nil {
- likes = streams.NewActivityStreamsLikesProperty()
- l.SetActivityStreamsLikes(likes)
- }
- // Get 'likes' value, defaulting to a collection.
- likesT := likes.GetType()
- if likesT == nil {
- col := streams.NewActivityStreamsCollection()
- likesT = col
- likes.SetActivityStreamsCollection(col)
- }
- // Prepend the activity's 'id' on the 'likes' Collection or
- // OrderedCollection.
- if col, ok := likesT.(itemser); ok {
- items := col.GetActivityStreamsItems()
- if items == nil {
- items = streams.NewActivityStreamsItemsProperty()
- col.SetActivityStreamsItems(items)
- }
- items.PrependIRI(id)
- } else if oCol, ok := likesT.(orderedItemser); ok {
- oItems := oCol.GetActivityStreamsOrderedItems()
- if oItems == nil {
- oItems = streams.NewActivityStreamsOrderedItemsProperty()
- oCol.SetActivityStreamsOrderedItems(oItems)
- }
- oItems.PrependIRI(id)
- } else {
- return fmt.Errorf("likes type is neither a Collection nor an OrderedCollection: %T", likesT)
- }
- err = w.db.Update(c, t)
- if err != nil {
- return err
- }
- return nil
- }
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- if err := loopFn(iter); err != nil {
- return err
- }
- }
- if w.Like != nil {
- return w.Like(c, a)
- }
- return nil
-}
-
-// announce implements the federating Announce activity side effects.
-func (w FederatingWrappedCallbacks) announce(c context.Context, a vocab.ActivityStreamsAnnounce) error {
- id, err := GetId(a)
- if err != nil {
- return err
- }
- op := a.GetActivityStreamsObject()
- // Create anonymous loop function to be able to properly scope the defer
- // for the database lock at each iteration.
- loopFn := func(iter vocab.ActivityStreamsObjectPropertyIterator) error {
- objId, err := ToId(iter)
- if err != nil {
- return err
- }
- if err := w.db.Lock(c, objId); err != nil {
- return err
- }
- defer w.db.Unlock(c, objId)
- if owns, err := w.db.Owns(c, objId); err != nil {
- return err
- } else if !owns {
- return nil
- }
- t, err := w.db.Get(c, objId)
- if err != nil {
- return err
- }
- s, ok := t.(shareser)
- if !ok {
- return fmt.Errorf("cannot add Announce to Shares collection for type %T", t)
- }
- // Get 'shares' property on the object, creating default if
- // necessary.
- shares := s.GetActivityStreamsShares()
- if shares == nil {
- shares = streams.NewActivityStreamsSharesProperty()
- s.SetActivityStreamsShares(shares)
- }
- // Get 'shares' value, defaulting to a collection.
- sharesT := shares.GetType()
- if sharesT == nil {
- col := streams.NewActivityStreamsCollection()
- sharesT = col
- shares.SetActivityStreamsCollection(col)
- }
- // Prepend the activity's 'id' on the 'shares' Collection or
- // OrderedCollection.
- if col, ok := sharesT.(itemser); ok {
- items := col.GetActivityStreamsItems()
- if items == nil {
- items = streams.NewActivityStreamsItemsProperty()
- col.SetActivityStreamsItems(items)
- }
- items.PrependIRI(id)
- } else if oCol, ok := sharesT.(orderedItemser); ok {
- oItems := oCol.GetActivityStreamsOrderedItems()
- if oItems == nil {
- oItems = streams.NewActivityStreamsOrderedItemsProperty()
- oCol.SetActivityStreamsOrderedItems(oItems)
- }
- oItems.PrependIRI(id)
- } else {
- return fmt.Errorf("shares type is neither a Collection nor an OrderedCollection: %T", sharesT)
- }
- err = w.db.Update(c, t)
- if err != nil {
- return err
- }
- return nil
- }
- if op != nil {
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- if err := loopFn(iter); err != nil {
- return err
- }
- }
- }
- if w.Announce != nil {
- return w.Announce(c, a)
- }
- return nil
-}
-
-// undo implements the federating Undo activity side effects.
-func (w FederatingWrappedCallbacks) undo(c context.Context, a vocab.ActivityStreamsUndo) error {
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- actors := a.GetActivityStreamsActor()
- if err := mustHaveActivityActorsMatchObjectActors(c, actors, op, w.newTransport, w.inboxIRI); err != nil {
- return err
- }
- if w.Undo != nil {
- return w.Undo(c, a)
- }
- return nil
-}
-
-// block implements the federating Block activity side effects.
-func (w FederatingWrappedCallbacks) block(c context.Context, a vocab.ActivityStreamsBlock) error {
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- if w.Block != nil {
- return w.Block(c, a)
- }
- return nil
-}
diff --git a/vendor/github.com/go-fed/activity/pub/handlers.go b/vendor/github.com/go-fed/activity/pub/handlers.go
deleted file mode 100644
index e77d02569..000000000
--- a/vendor/github.com/go-fed/activity/pub/handlers.go
+++ /dev/null
@@ -1,113 +0,0 @@
-package pub
-
-import (
- "context"
- "encoding/json"
- "errors"
- "fmt"
- "net/http"
-
- "github.com/go-fed/activity/streams"
-)
-
-var ErrNotFound = errors.New("go-fed/activity: ActivityStreams data not found")
-
-// HandlerFunc determines whether an incoming HTTP request is an ActivityStreams
-// GET request, and if so attempts to serve ActivityStreams data.
-//
-// If an error is returned, then the calling function is responsible for writing
-// to the ResponseWriter as part of error handling.
-//
-// If 'isASRequest' is false and there is no error, then the calling function
-// may continue processing the request, and the HandlerFunc will not have
-// written anything to the ResponseWriter. For example, a webpage may be served
-// instead.
-//
-// If 'isASRequest' is true and there is no error, then the HandlerFunc
-// successfully served the request and wrote to the ResponseWriter.
-//
-// Callers are responsible for authorized access to this resource.
-type HandlerFunc func(c context.Context, w http.ResponseWriter, r *http.Request) (isASRequest bool, err error)
-
-// NewActivityStreamsHandler creates a HandlerFunc to serve ActivityStreams
-// requests which are coming from other clients or servers that wish to obtain
-// an ActivityStreams representation of data.
-//
-// Strips retrieved ActivityStreams values of sensitive fields ('bto' and 'bcc')
-// before responding with them. Sets the appropriate HTTP status code for
-// Tombstone Activities as well.
-//
-// Defaults to supporting content to be retrieved by HTTPS only.
-func NewActivityStreamsHandler(db Database, clock Clock) HandlerFunc {
- return NewActivityStreamsHandlerScheme(db, clock, "https")
-}
-
-// NewActivityStreamsHandlerScheme creates a HandlerFunc to serve
-// ActivityStreams requests which are coming from other clients or servers that
-// wish to obtain an ActivityStreams representation of data provided by the
-// specified protocol scheme.
-//
-// Strips retrieved ActivityStreams values of sensitive fields ('bto' and 'bcc')
-// before responding with them. Sets the appropriate HTTP status code for
-// Tombstone Activities as well.
-//
-// Specifying the "scheme" allows for retrieving ActivityStreams content with
-// identifiers such as HTTP, HTTPS, or other protocol schemes.
-//
-// Returns ErrNotFound when the database does not retrieve any data and no
-// errors occurred during retrieval.
-func NewActivityStreamsHandlerScheme(db Database, clock Clock, scheme string) HandlerFunc {
- return func(c context.Context, w http.ResponseWriter, r *http.Request) (isASRequest bool, err error) {
- // Do nothing if it is not an ActivityPub GET request
- if !isActivityPubGet(r) {
- return
- }
- isASRequest = true
- id := requestId(r, scheme)
- // Lock and obtain a copy of the requested ActivityStreams value
- err = db.Lock(c, id)
- if err != nil {
- return
- }
- // WARNING: Unlock not deferred
- t, err := db.Get(c, id)
- if err != nil {
- db.Unlock(c, id)
- return
- }
- db.Unlock(c, id)
- // Unlock must have been called by this point and in every
- // branch above
- if t == nil {
- err = ErrNotFound
- return
- }
- // Remove sensitive fields.
- clearSensitiveFields(t)
- // Serialize the fetched value.
- m, err := streams.Serialize(t)
- if err != nil {
- return
- }
- raw, err := json.Marshal(m)
- if err != nil {
- return
- }
- // Construct the response.
- addResponseHeaders(w.Header(), clock, raw)
- // Write the response.
- if streams.IsOrExtendsActivityStreamsTombstone(t) {
- w.WriteHeader(http.StatusGone)
- } else {
- w.WriteHeader(http.StatusOK)
- }
- n, err := w.Write(raw)
- if err != nil {
- return
- } else if n != len(raw) {
- err = fmt.Errorf("only wrote %d of %d bytes", n, len(raw))
- return
- }
- return
- }
-}
diff --git a/vendor/github.com/go-fed/activity/pub/property_interfaces.go b/vendor/github.com/go-fed/activity/pub/property_interfaces.go
deleted file mode 100644
index b40134462..000000000
--- a/vendor/github.com/go-fed/activity/pub/property_interfaces.go
+++ /dev/null
@@ -1,117 +0,0 @@
-package pub
-
-import (
- "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// inReplyToer is an ActivityStreams type with an 'inReplyTo' property
-type inReplyToer interface {
- GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty
-}
-
-// objecter is an ActivityStreams type with an 'object' property
-type objecter interface {
- GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty
-}
-
-// targeter is an ActivityStreams type with a 'target' property
-type targeter interface {
- GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty
-}
-
-// tagger is an ActivityStreams type with a 'tag' property
-type tagger interface {
- GetActivityStreamsTag() vocab.ActivityStreamsTagProperty
-}
-
-// hrefer is an ActivityStreams type with a 'href' property
-type hrefer interface {
- GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty
-}
-
-// itemser is an ActivityStreams type with an 'items' property
-type itemser interface {
- GetActivityStreamsItems() vocab.ActivityStreamsItemsProperty
- SetActivityStreamsItems(vocab.ActivityStreamsItemsProperty)
-}
-
-// orderedItemser is an ActivityStreams type with an 'orderedItems' property
-type orderedItemser interface {
- GetActivityStreamsOrderedItems() vocab.ActivityStreamsOrderedItemsProperty
- SetActivityStreamsOrderedItems(vocab.ActivityStreamsOrderedItemsProperty)
-}
-
-// publisheder is an ActivityStreams type with a 'published' property
-type publisheder interface {
- GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty
-}
-
-// updateder is an ActivityStreams type with an 'updateder' property
-type updateder interface {
- GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty
-}
-
-// toer is an ActivityStreams type with a 'to' property
-type toer interface {
- GetActivityStreamsTo() vocab.ActivityStreamsToProperty
- SetActivityStreamsTo(i vocab.ActivityStreamsToProperty)
-}
-
-// btoer is an ActivityStreams type with a 'bto' property
-type btoer interface {
- GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty
- SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty)
-}
-
-// ccer is an ActivityStreams type with a 'cc' property
-type ccer interface {
- GetActivityStreamsCc() vocab.ActivityStreamsCcProperty
- SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty)
-}
-
-// bccer is an ActivityStreams type with a 'bcc' property
-type bccer interface {
- GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty
- SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty)
-}
-
-// audiencer is an ActivityStreams type with an 'audience' property
-type audiencer interface {
- GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty
- SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty)
-}
-
-// inboxer is an ActivityStreams type with an 'inbox' property
-type inboxer interface {
- GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty
-}
-
-// attributedToer is an ActivityStreams type with an 'attributedTo' property
-type attributedToer interface {
- GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty
- SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty)
-}
-
-// likeser is an ActivityStreams type with a 'likes' property
-type likeser interface {
- GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty
- SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty)
-}
-
-// shareser is an ActivityStreams type with a 'shares' property
-type shareser interface {
- GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty
- SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty)
-}
-
-// actorer is an ActivityStreams type with an 'actor' property
-type actorer interface {
- GetActivityStreamsActor() vocab.ActivityStreamsActorProperty
- SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty)
-}
-
-// appendIRIer is an ActivityStreams type that can Append IRIs.
-type appendIRIer interface {
- AppendIRI(v *url.URL)
-}
diff --git a/vendor/github.com/go-fed/activity/pub/side_effect_actor.go b/vendor/github.com/go-fed/activity/pub/side_effect_actor.go
deleted file mode 100644
index c8b5375eb..000000000
--- a/vendor/github.com/go-fed/activity/pub/side_effect_actor.go
+++ /dev/null
@@ -1,810 +0,0 @@
-package pub
-
-import (
- "context"
- "encoding/json"
- "fmt"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
- "net/http"
- "net/url"
-)
-
-// sideEffectActor must satisfy the DelegateActor interface.
-var _ DelegateActor = &sideEffectActor{}
-
-// sideEffectActor is a DelegateActor that handles the ActivityPub
-// implementation side effects, but requires a more opinionated application to
-// be written.
-//
-// Note that when using the sideEffectActor with an application that good-faith
-// implements its required interfaces, the ActivityPub specification is
-// guaranteed to be correctly followed.
-type sideEffectActor struct {
- common CommonBehavior
- s2s FederatingProtocol
- c2s SocialProtocol
- db Database
- clock Clock
-}
-
-// PostInboxRequestBodyHook defers to the delegate.
-func (a *sideEffectActor) PostInboxRequestBodyHook(c context.Context, r *http.Request, activity Activity) (context.Context, error) {
- return a.s2s.PostInboxRequestBodyHook(c, r, activity)
-}
-
-// PostOutboxRequestBodyHook defers to the delegate.
-func (a *sideEffectActor) PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error) {
- return a.c2s.PostOutboxRequestBodyHook(c, r, data)
-}
-
-// AuthenticatePostInbox defers to the delegate to authenticate the request.
-func (a *sideEffectActor) AuthenticatePostInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) {
- return a.s2s.AuthenticatePostInbox(c, w, r)
-}
-
-// AuthenticateGetInbox defers to the delegate to authenticate the request.
-func (a *sideEffectActor) AuthenticateGetInbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) {
- return a.common.AuthenticateGetInbox(c, w, r)
-}
-
-// AuthenticatePostOutbox defers to the delegate to authenticate the request.
-func (a *sideEffectActor) AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) {
- return a.c2s.AuthenticatePostOutbox(c, w, r)
-}
-
-// AuthenticateGetOutbox defers to the delegate to authenticate the request.
-func (a *sideEffectActor) AuthenticateGetOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error) {
- return a.common.AuthenticateGetOutbox(c, w, r)
-}
-
-// GetOutbox delegates to the SocialProtocol.
-func (a *sideEffectActor) GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) {
- return a.common.GetOutbox(c, r)
-}
-
-// GetInbox delegates to the FederatingProtocol.
-func (a *sideEffectActor) GetInbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) {
- return a.s2s.GetInbox(c, r)
-}
-
-// AuthorizePostInbox defers to the federating protocol whether the peer request
-// is authorized based on the actors' ids.
-func (a *sideEffectActor) AuthorizePostInbox(c context.Context, w http.ResponseWriter, activity Activity) (authorized bool, err error) {
- authorized = false
- actor := activity.GetActivityStreamsActor()
- if actor == nil {
- err = fmt.Errorf("no actors in post to inbox")
- return
- }
- var iris []*url.URL
- for i := 0; i < actor.Len(); i++ {
- iter := actor.At(i)
- if iter.IsIRI() {
- iris = append(iris, iter.GetIRI())
- } else if t := iter.GetType(); t != nil {
- iris = append(iris, activity.GetJSONLDId().Get())
- } else {
- err = fmt.Errorf("actor at index %d is missing an id", i)
- return
- }
- }
- // Determine if the actor(s) sending this request are blocked.
- var blocked bool
- if blocked, err = a.s2s.Blocked(c, iris); err != nil {
- return
- } else if blocked {
- w.WriteHeader(http.StatusForbidden)
- return
- }
- authorized = true
- return
-}
-
-// PostInbox handles the side effects of determining whether to block the peer's
-// request, adding the activity to the actor's inbox, and triggering side
-// effects based on the activity's type.
-func (a *sideEffectActor) PostInbox(c context.Context, inboxIRI *url.URL, activity Activity) error {
- isNew, err := a.addToInboxIfNew(c, inboxIRI, activity)
- if err != nil {
- return err
- }
- if isNew {
- wrapped, other, err := a.s2s.FederatingCallbacks(c)
- if err != nil {
- return err
- }
- // Populate side channels.
- wrapped.db = a.db
- wrapped.inboxIRI = inboxIRI
- wrapped.newTransport = a.common.NewTransport
- wrapped.deliver = a.Deliver
- wrapped.addNewIds = a.AddNewIDs
- res, err := streams.NewTypeResolver(wrapped.callbacks(other)...)
- if err != nil {
- return err
- }
- if err = res.Resolve(c, activity); err != nil && !streams.IsUnmatchedErr(err) {
- return err
- } else if streams.IsUnmatchedErr(err) {
- err = a.s2s.DefaultCallback(c, activity)
- if err != nil {
- return err
- }
- }
- }
- return nil
-}
-
-// InboxForwarding implements the 3-part inbox forwarding algorithm specified in
-// the ActivityPub specification. Does not modify the Activity, but may send
-// outbound requests as a side effect.
-//
-// InboxForwarding sets the federated data in the database.
-func (a *sideEffectActor) InboxForwarding(c context.Context, inboxIRI *url.URL, activity Activity) error {
- // 1. Must be first time we have seen this Activity.
- //
- // Obtain the id of the activity
- id := activity.GetJSONLDId()
- // Acquire a lock for the id. To be held for the rest of execution.
- err := a.db.Lock(c, id.Get())
- if err != nil {
- return err
- }
- // WARNING: Unlock is not deferred
- //
- // If the database already contains the activity, exit early.
- exists, err := a.db.Exists(c, id.Get())
- if err != nil {
- a.db.Unlock(c, id.Get())
- return err
- } else if exists {
- a.db.Unlock(c, id.Get())
- return nil
- }
- // Attempt to create the activity entry.
- err = a.db.Create(c, activity)
- if err != nil {
- a.db.Unlock(c, id.Get())
- return err
- }
- a.db.Unlock(c, id.Get())
- // Unlock by this point and in every branch above.
- //
- // 2. The values of 'to', 'cc', or 'audience' are Collections owned by
- // this server.
- var r []*url.URL
- to := activity.GetActivityStreamsTo()
- if to != nil {
- for iter := to.Begin(); iter != to.End(); iter = iter.Next() {
- val, err := ToId(iter)
- if err != nil {
- return err
- }
- r = append(r, val)
- }
- }
- cc := activity.GetActivityStreamsCc()
- if cc != nil {
- for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() {
- val, err := ToId(iter)
- if err != nil {
- return err
- }
- r = append(r, val)
- }
- }
- audience := activity.GetActivityStreamsAudience()
- if audience != nil {
- for iter := audience.Begin(); iter != audience.End(); iter = iter.Next() {
- val, err := ToId(iter)
- if err != nil {
- return err
- }
- r = append(r, val)
- }
- }
- // Find all IRIs owned by this server. We need to find all of them so
- // that forwarding can properly occur.
- var myIRIs []*url.URL
- for _, iri := range r {
- if err != nil {
- return err
- }
- err = a.db.Lock(c, iri)
- if err != nil {
- return err
- }
- // WARNING: Unlock is not deferred
- if owns, err := a.db.Owns(c, iri); err != nil {
- a.db.Unlock(c, iri)
- return err
- } else if !owns {
- a.db.Unlock(c, iri)
- continue
- }
- a.db.Unlock(c, iri)
- // Unlock by this point and in every branch above.
- myIRIs = append(myIRIs, iri)
- }
- // Finally, load our IRIs to determine if they are a Collection or
- // OrderedCollection.
- //
- // Load the unfiltered IRIs.
- var colIRIs []*url.URL
- col := make(map[string]itemser)
- oCol := make(map[string]orderedItemser)
- for _, iri := range myIRIs {
- err = a.db.Lock(c, iri)
- if err != nil {
- return err
- }
- // WARNING: Not Unlocked
- t, err := a.db.Get(c, iri)
- if err != nil {
- return err
- }
- if streams.IsOrExtendsActivityStreamsOrderedCollection(t) {
- if im, ok := t.(orderedItemser); ok {
- oCol[iri.String()] = im
- colIRIs = append(colIRIs, iri)
- defer a.db.Unlock(c, iri)
- } else {
- a.db.Unlock(c, iri)
- }
- } else if streams.IsOrExtendsActivityStreamsCollection(t) {
- if im, ok := t.(itemser); ok {
- col[iri.String()] = im
- colIRIs = append(colIRIs, iri)
- defer a.db.Unlock(c, iri)
- } else {
- a.db.Unlock(c, iri)
- }
- } else {
- a.db.Unlock(c, iri)
- }
- }
- // If we own none of the Collection IRIs in 'to', 'cc', or 'audience'
- // then no need to do inbox forwarding. We have nothing to forward to.
- if len(colIRIs) == 0 {
- return nil
- }
- // 3. The values of 'inReplyTo', 'object', 'target', or 'tag' are owned
- // by this server. This is only a boolean trigger: As soon as we get
- // a hit that we own something, then we should do inbox forwarding.
- maxDepth := a.s2s.MaxInboxForwardingRecursionDepth(c)
- ownsValue, err := a.hasInboxForwardingValues(c, inboxIRI, activity, maxDepth, 0)
- if err != nil {
- return err
- }
- // If we don't own any of the 'inReplyTo', 'object', 'target', or 'tag'
- // values, then no need to do inbox forwarding.
- if !ownsValue {
- return nil
- }
- // Do the inbox forwarding since the above conditions hold true. Support
- // the behavior of letting the application filter out the resulting
- // collections to be targeted.
- toSend, err := a.s2s.FilterForwarding(c, colIRIs, activity)
- if err != nil {
- return err
- }
- recipients := make([]*url.URL, 0, len(toSend))
- for _, iri := range toSend {
- if c, ok := col[iri.String()]; ok {
- if it := c.GetActivityStreamsItems(); it != nil {
- for iter := it.Begin(); iter != it.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- recipients = append(recipients, id)
- }
- }
- } else if oc, ok := oCol[iri.String()]; ok {
- if oit := oc.GetActivityStreamsOrderedItems(); oit != nil {
- for iter := oit.Begin(); iter != oit.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- recipients = append(recipients, id)
- }
- }
- }
- }
- return a.deliverToRecipients(c, inboxIRI, activity, recipients)
-}
-
-// PostOutbox handles the side effects of adding the activity to the actor's
-// outbox, and triggering side effects based on the activity's type.
-//
-// This implementation assumes all types are meant to be delivered except for
-// the ActivityStreams Block type.
-func (a *sideEffectActor) PostOutbox(c context.Context, activity Activity, outboxIRI *url.URL, rawJSON map[string]interface{}) (deliverable bool, err error) {
- // TODO: Determine this if c2s is nil
- deliverable = true
- if a.c2s != nil {
- var wrapped SocialWrappedCallbacks
- var other []interface{}
- wrapped, other, err = a.c2s.SocialCallbacks(c)
- if err != nil {
- return
- }
- // Populate side channels.
- wrapped.db = a.db
- wrapped.outboxIRI = outboxIRI
- wrapped.rawActivity = rawJSON
- wrapped.clock = a.clock
- wrapped.newTransport = a.common.NewTransport
- undeliverable := false
- wrapped.undeliverable = &undeliverable
- var res *streams.TypeResolver
- res, err = streams.NewTypeResolver(wrapped.callbacks(other)...)
- if err != nil {
- return
- }
- if err = res.Resolve(c, activity); err != nil && !streams.IsUnmatchedErr(err) {
- return
- } else if streams.IsUnmatchedErr(err) {
- deliverable = true
- err = a.c2s.DefaultCallback(c, activity)
- if err != nil {
- return
- }
- } else {
- deliverable = !undeliverable
- }
- }
- err = a.addToOutbox(c, outboxIRI, activity)
- return
-}
-
-// AddNewIDs creates new 'id' entries on an activity and its objects if it is a
-// Create activity.
-func (a *sideEffectActor) AddNewIDs(c context.Context, activity Activity) error {
- id, err := a.db.NewID(c, activity)
- if err != nil {
- return err
- }
- activityId := streams.NewJSONLDIdProperty()
- activityId.Set(id)
- activity.SetJSONLDId(activityId)
- if streams.IsOrExtendsActivityStreamsCreate(activity) {
- o, ok := activity.(objecter)
- if !ok {
- return fmt.Errorf("cannot add new id for Create: %T has no object property", activity)
- }
- if oProp := o.GetActivityStreamsObject(); oProp != nil {
- for iter := oProp.Begin(); iter != oProp.End(); iter = iter.Next() {
- t := iter.GetType()
- if t == nil {
- return fmt.Errorf("cannot add new id for object in Create: object is not embedded as a value literal")
- }
- id, err = a.db.NewID(c, t)
- if err != nil {
- return err
- }
- objId := streams.NewJSONLDIdProperty()
- objId.Set(id)
- t.SetJSONLDId(objId)
- }
- }
- }
- return nil
-}
-
-// deliver will complete the peer-to-peer sending of a federated message to
-// another server.
-//
-// Must be called if at least the federated protocol is supported.
-func (a *sideEffectActor) Deliver(c context.Context, outboxIRI *url.URL, activity Activity) error {
- recipients, err := a.prepare(c, outboxIRI, activity)
- if err != nil {
- return err
- }
- return a.deliverToRecipients(c, outboxIRI, activity, recipients)
-}
-
-// WrapInCreate wraps an object with a Create activity.
-func (a *sideEffectActor) WrapInCreate(c context.Context, obj vocab.Type, outboxIRI *url.URL) (create vocab.ActivityStreamsCreate, err error) {
- err = a.db.Lock(c, outboxIRI)
- if err != nil {
- return
- }
- // WARNING: No deferring the Unlock
- actorIRI, err := a.db.ActorForOutbox(c, outboxIRI)
- if err != nil {
- a.db.Unlock(c, outboxIRI)
- return
- }
- a.db.Unlock(c, outboxIRI)
- // Unlock the lock at this point and every branch above
- return wrapInCreate(c, obj, actorIRI)
-}
-
-// deliverToRecipients will take a prepared Activity and send it to specific
-// recipients on behalf of an actor.
-func (a *sideEffectActor) deliverToRecipients(c context.Context, boxIRI *url.URL, activity Activity, recipients []*url.URL) error {
- m, err := streams.Serialize(activity)
- if err != nil {
- return err
- }
- b, err := json.Marshal(m)
- if err != nil {
- return err
- }
- tp, err := a.common.NewTransport(c, boxIRI, goFedUserAgent())
- if err != nil {
- return err
- }
- return tp.BatchDeliver(c, b, recipients)
-}
-
-// addToOutbox adds the activity to the outbox and creates the activity in the
-// internal database as its own entry.
-func (a *sideEffectActor) addToOutbox(c context.Context, outboxIRI *url.URL, activity Activity) error {
- // Set the activity in the database first.
- id := activity.GetJSONLDId()
- err := a.db.Lock(c, id.Get())
- if err != nil {
- return err
- }
- // WARNING: Unlock not deferred
- err = a.db.Create(c, activity)
- if err != nil {
- a.db.Unlock(c, id.Get())
- return err
- }
- a.db.Unlock(c, id.Get())
- // WARNING: Unlock(c, id) should be called by this point and in every
- // return before here.
- //
- // Acquire a lock to read the outbox. Defer release.
- err = a.db.Lock(c, outboxIRI)
- if err != nil {
- return err
- }
- defer a.db.Unlock(c, outboxIRI)
- outbox, err := a.db.GetOutbox(c, outboxIRI)
- if err != nil {
- return err
- }
- // Prepend the activity to the list of 'orderedItems'.
- oi := outbox.GetActivityStreamsOrderedItems()
- if oi == nil {
- oi = streams.NewActivityStreamsOrderedItemsProperty()
- }
- oi.PrependIRI(id.Get())
- outbox.SetActivityStreamsOrderedItems(oi)
- // Save in the database.
- err = a.db.SetOutbox(c, outbox)
- return err
-}
-
-// addToInboxIfNew will add the activity to the inbox at the specified IRI if
-// the activity's ID has not yet been added to the inbox.
-//
-// It does not add the activity to this database's know federated data.
-//
-// Returns true when the activity is novel.
-func (a *sideEffectActor) addToInboxIfNew(c context.Context, inboxIRI *url.URL, activity Activity) (isNew bool, err error) {
- // Acquire a lock to read the inbox. Defer release.
- err = a.db.Lock(c, inboxIRI)
- if err != nil {
- return
- }
- defer a.db.Unlock(c, inboxIRI)
- // Obtain the id of the activity
- id := activity.GetJSONLDId()
- // If the inbox already contains the URL, early exit.
- contains, err := a.db.InboxContains(c, inboxIRI, id.Get())
- if err != nil {
- return
- } else if contains {
- return
- }
- // It is a new id, acquire the inbox.
- isNew = true
- inbox, err := a.db.GetInbox(c, inboxIRI)
- if err != nil {
- return
- }
- // Prepend the activity to the list of 'orderedItems'.
- oi := inbox.GetActivityStreamsOrderedItems()
- if oi == nil {
- oi = streams.NewActivityStreamsOrderedItemsProperty()
- }
- oi.PrependIRI(id.Get())
- inbox.SetActivityStreamsOrderedItems(oi)
- // Save in the database.
- err = a.db.SetInbox(c, inbox)
- return
-}
-
-// Given an ActivityStreams value, recursively examines ownership of the id or
-// href and the ones on properties applicable to inbox forwarding.
-//
-// Recursion may be limited by providing a 'maxDepth' greater than zero. A
-// value of zero or a negative number will result in infinite recursion.
-func (a *sideEffectActor) hasInboxForwardingValues(c context.Context, inboxIRI *url.URL, val vocab.Type, maxDepth, currDepth int) (bool, error) {
- // Stop recurring if we are exceeding the maximum depth and the maximum
- // is a positive number.
- if maxDepth > 0 && currDepth >= maxDepth {
- return false, nil
- }
- // Determine if we own the 'id' of any values on the properties we care
- // about.
- types, iris := getInboxForwardingValues(val)
- // For IRIs, simply check if we own them.
- for _, iri := range iris {
- err := a.db.Lock(c, iri)
- if err != nil {
- return false, err
- }
- // WARNING: Unlock is not deferred
- if owns, err := a.db.Owns(c, iri); err != nil {
- a.db.Unlock(c, iri)
- return false, err
- } else if owns {
- a.db.Unlock(c, iri)
- return true, nil
- }
- a.db.Unlock(c, iri)
- // Unlock by this point and in every branch above
- }
- // For embedded literals, check the id.
- for _, val := range types {
- id, err := GetId(val)
- if err != nil {
- return false, err
- }
- err = a.db.Lock(c, id)
- if err != nil {
- return false, err
- }
- // WARNING: Unlock is not deferred
- if owns, err := a.db.Owns(c, id); err != nil {
- a.db.Unlock(c, id)
- return false, err
- } else if owns {
- a.db.Unlock(c, id)
- return true, nil
- }
- a.db.Unlock(c, id)
- // Unlock by this point and in every branch above
- }
- // Recur Preparation: Try fetching the IRIs so we can recur into them.
- for _, iri := range iris {
- // Dereferencing the IRI.
- tport, err := a.common.NewTransport(c, inboxIRI, goFedUserAgent())
- if err != nil {
- return false, err
- }
- b, err := tport.Dereference(c, iri)
- if err != nil {
- // Do not fail the entire process if the data is
- // missing.
- continue
- }
- var m map[string]interface{}
- if err = json.Unmarshal(b, &m); err != nil {
- return false, err
- }
- t, err := streams.ToType(c, m)
- if err != nil {
- // Do not fail the entire process if we cannot handle
- // the type.
- continue
- }
- types = append(types, t)
- }
- // Recur.
- for _, nextVal := range types {
- if has, err := a.hasInboxForwardingValues(c, inboxIRI, nextVal, maxDepth, currDepth+1); err != nil {
- return false, err
- } else if has {
- return true, nil
- }
- }
- return false, nil
-}
-
-// prepare takes a deliverableObject and returns a list of the proper recipient
-// target URIs. Additionally, the deliverableObject will have any hidden
-// hidden recipients ("bto" and "bcc") stripped from it.
-//
-// Only call if both the social and federated protocol are supported.
-func (a *sideEffectActor) prepare(c context.Context, outboxIRI *url.URL, activity Activity) (r []*url.URL, err error) {
- // Get inboxes of recipients
- if to := activity.GetActivityStreamsTo(); to != nil {
- for iter := to.Begin(); iter != to.End(); iter = iter.Next() {
- var val *url.URL
- val, err = ToId(iter)
- if err != nil {
- return
- }
- r = append(r, val)
- }
- }
- if bto := activity.GetActivityStreamsBto(); bto != nil {
- for iter := bto.Begin(); iter != bto.End(); iter = iter.Next() {
- var val *url.URL
- val, err = ToId(iter)
- if err != nil {
- return
- }
- r = append(r, val)
- }
- }
- if cc := activity.GetActivityStreamsCc(); cc != nil {
- for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() {
- var val *url.URL
- val, err = ToId(iter)
- if err != nil {
- return
- }
- r = append(r, val)
- }
- }
- if bcc := activity.GetActivityStreamsBcc(); bcc != nil {
- for iter := bcc.Begin(); iter != bcc.End(); iter = iter.Next() {
- var val *url.URL
- val, err = ToId(iter)
- if err != nil {
- return
- }
- r = append(r, val)
- }
- }
- if audience := activity.GetActivityStreamsAudience(); audience != nil {
- for iter := audience.Begin(); iter != audience.End(); iter = iter.Next() {
- var val *url.URL
- val, err = ToId(iter)
- if err != nil {
- return
- }
- r = append(r, val)
- }
- }
- // 1. When an object is being delivered to the originating actor's
- // followers, a server MAY reduce the number of receiving actors
- // delivered to by identifying all followers which share the same
- // sharedInbox who would otherwise be individual recipients and
- // instead deliver objects to said sharedInbox.
- // 2. If an object is addressed to the Public special collection, a
- // server MAY deliver that object to all known sharedInbox endpoints
- // on the network.
- r = filterURLs(r, IsPublic)
- t, err := a.common.NewTransport(c, outboxIRI, goFedUserAgent())
- if err != nil {
- return nil, err
- }
- receiverActors, err := a.resolveInboxes(c, t, r, 0, a.s2s.MaxDeliveryRecursionDepth(c))
- if err != nil {
- return nil, err
- }
- targets, err := getInboxes(receiverActors)
- if err != nil {
- return nil, err
- }
- // Get inboxes of sender.
- err = a.db.Lock(c, outboxIRI)
- if err != nil {
- return
- }
- // WARNING: No deferring the Unlock
- actorIRI, err := a.db.ActorForOutbox(c, outboxIRI)
- if err != nil {
- a.db.Unlock(c, outboxIRI)
- return
- }
- a.db.Unlock(c, outboxIRI)
- // Get the inbox on the sender.
- err = a.db.Lock(c, actorIRI)
- if err != nil {
- return nil, err
- }
- // BEGIN LOCK
- thisActor, err := a.db.Get(c, actorIRI)
- a.db.Unlock(c, actorIRI)
- // END LOCK -- Still need to handle err
- if err != nil {
- return nil, err
- }
- // Post-processing
- var ignore *url.URL
- ignore, err = getInbox(thisActor)
- if err != nil {
- return nil, err
- }
- r = dedupeIRIs(targets, []*url.URL{ignore})
- stripHiddenRecipients(activity)
- return r, nil
-}
-
-// resolveInboxes takes a list of Actor id URIs and returns them as concrete
-// instances of actorObject. It attempts to apply recursively when it encounters
-// a target that is a Collection or OrderedCollection.
-//
-// If maxDepth is zero or negative, then recursion is infinitely applied.
-//
-// If a recipient is a Collection or OrderedCollection, then the server MUST
-// dereference the collection, WITH the user's credentials.
-//
-// Note that this also applies to CollectionPage and OrderedCollectionPage.
-func (a *sideEffectActor) resolveInboxes(c context.Context, t Transport, r []*url.URL, depth, maxDepth int) (actors []vocab.Type, err error) {
- if maxDepth > 0 && depth >= maxDepth {
- return
- }
- for _, u := range r {
- var act vocab.Type
- var more []*url.URL
- // TODO: Determine if more logic is needed here for inaccessible
- // collections owned by peer servers.
- act, more, err = a.dereferenceForResolvingInboxes(c, t, u)
- if err != nil {
- // Missing recipient -- skip.
- continue
- }
- var recurActors []vocab.Type
- recurActors, err = a.resolveInboxes(c, t, more, depth+1, maxDepth)
- if err != nil {
- return
- }
- if act != nil {
- actors = append(actors, act)
- }
- actors = append(actors, recurActors...)
- }
- return
-}
-
-// dereferenceForResolvingInboxes dereferences an IRI solely for finding an
-// actor's inbox IRI to deliver to.
-//
-// The returned actor could be nil, if it wasn't an actor (ex: a Collection or
-// OrderedCollection).
-func (a *sideEffectActor) dereferenceForResolvingInboxes(c context.Context, t Transport, actorIRI *url.URL) (actor vocab.Type, moreActorIRIs []*url.URL, err error) {
- var resp []byte
- resp, err = t.Dereference(c, actorIRI)
- if err != nil {
- return
- }
- var m map[string]interface{}
- if err = json.Unmarshal(resp, &m); err != nil {
- return
- }
- actor, err = streams.ToType(c, m)
- if err != nil {
- return
- }
- // Attempt to see if the 'actor' is really some sort of type that has
- // an 'items' or 'orderedItems' property.
- if v, ok := actor.(itemser); ok {
- if i := v.GetActivityStreamsItems(); i != nil {
- for iter := i.Begin(); iter != i.End(); iter = iter.Next() {
- var id *url.URL
- id, err = ToId(iter)
- if err != nil {
- return
- }
- moreActorIRIs = append(moreActorIRIs, id)
- }
- }
- actor = nil
- } else if v, ok := actor.(orderedItemser); ok {
- if i := v.GetActivityStreamsOrderedItems(); i != nil {
- for iter := i.Begin(); iter != i.End(); iter = iter.Next() {
- var id *url.URL
- id, err = ToId(iter)
- if err != nil {
- return
- }
- moreActorIRIs = append(moreActorIRIs, id)
- }
- }
- actor = nil
- }
- return
-}
diff --git a/vendor/github.com/go-fed/activity/pub/social_protocol.go b/vendor/github.com/go-fed/activity/pub/social_protocol.go
deleted file mode 100644
index 7b7862c66..000000000
--- a/vendor/github.com/go-fed/activity/pub/social_protocol.go
+++ /dev/null
@@ -1,82 +0,0 @@
-package pub
-
-import (
- "context"
- "github.com/go-fed/activity/streams/vocab"
- "net/http"
-)
-
-// SocialProtocol contains behaviors an application needs to satisfy for the
-// full ActivityPub C2S implementation to be supported by this library.
-//
-// It is only required if the client application wants to support the client-to-
-// server, or social, protocol.
-//
-// It is passed to the library as a dependency injection from the client
-// application.
-type SocialProtocol interface {
- // Hook callback after parsing the request body for a client request
- // to the Actor's outbox.
- //
- // Can be used to set contextual information based on the
- // ActivityStreams object received.
- //
- // Only called if the Social API is enabled.
- //
- // Warning: Neither authentication nor authorization has taken place at
- // this time. Doing anything beyond setting contextual information is
- // strongly discouraged.
- //
- // If an error is returned, it is passed back to the caller of
- // PostOutbox. In this case, the DelegateActor implementation must not
- // write a response to the ResponseWriter as is expected that the caller
- // to PostOutbox will do so when handling the error.
- PostOutboxRequestBodyHook(c context.Context, r *http.Request, data vocab.Type) (context.Context, error)
- // AuthenticatePostOutbox delegates the authentication of a POST to an
- // outbox.
- //
- // Only called if the Social API is enabled.
- //
- // If an error is returned, it is passed back to the caller of
- // PostOutbox. In this case, the implementation must not write a
- // response to the ResponseWriter as is expected that the client will
- // do so when handling the error. The 'authenticated' is ignored.
- //
- // If no error is returned, but authentication or authorization fails,
- // then authenticated must be false and error nil. It is expected that
- // the implementation handles writing to the ResponseWriter in this
- // case.
- //
- // Finally, if the authentication and authorization succeeds, then
- // authenticated must be true and error nil. The request will continue
- // to be processed.
- AuthenticatePostOutbox(c context.Context, w http.ResponseWriter, r *http.Request) (out context.Context, authenticated bool, err error)
- // SocialCallbacks returns the application logic that handles
- // ActivityStreams received from C2S clients.
- //
- // Note that certain types of callbacks will be 'wrapped' with default
- // behaviors supported natively by the library. Other callbacks
- // compatible with streams.TypeResolver can be specified by 'other'.
- //
- // For example, setting the 'Create' field in the SocialWrappedCallbacks
- // lets an application dependency inject additional behaviors they want
- // to take place, including the default behavior supplied by this
- // library. This is guaranteed to be compliant with the ActivityPub
- // Social protocol.
- //
- // To override the default behavior, instead supply the function in
- // 'other', which does not guarantee the application will be compliant
- // with the ActivityPub Social Protocol.
- //
- // Applications are not expected to handle every single ActivityStreams
- // type and extension. The unhandled ones are passed to DefaultCallback.
- SocialCallbacks(c context.Context) (wrapped SocialWrappedCallbacks, other []interface{}, err error)
- // DefaultCallback is called for types that go-fed can deserialize but
- // are not handled by the application's callbacks returned in the
- // Callbacks method.
- //
- // Applications are not expected to handle every single ActivityStreams
- // type and extension, so the unhandled ones are passed to
- // DefaultCallback.
- DefaultCallback(c context.Context, activity Activity) error
-}
diff --git a/vendor/github.com/go-fed/activity/pub/social_wrapped_callbacks.go b/vendor/github.com/go-fed/activity/pub/social_wrapped_callbacks.go
deleted file mode 100644
index b4b1204e2..000000000
--- a/vendor/github.com/go-fed/activity/pub/social_wrapped_callbacks.go
+++ /dev/null
@@ -1,531 +0,0 @@
-package pub
-
-import (
- "context"
- "fmt"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// SocialWrappedCallbacks lists the callback functions that already have some
-// side effect behavior provided by the pub library.
-//
-// These functions are wrapped for the Social Protocol.
-type SocialWrappedCallbacks struct {
- // Create handles additional side effects for the Create ActivityStreams
- // type.
- //
- // The wrapping callback copies the actor(s) to the 'attributedTo'
- // property and copies recipients between the Create activity and all
- // objects. It then saves the entry in the database.
- Create func(context.Context, vocab.ActivityStreamsCreate) error
- // Update handles additional side effects for the Update ActivityStreams
- // type.
- //
- // The wrapping callback applies new top-level values on an object to
- // the stored objects. Any top-level null literals will be deleted on
- // the stored objects as well.
- Update func(context.Context, vocab.ActivityStreamsUpdate) error
- // Delete handles additional side effects for the Delete ActivityStreams
- // type.
- //
- // The wrapping callback replaces the object(s) with tombstones in the
- // database.
- Delete func(context.Context, vocab.ActivityStreamsDelete) error
- // Follow handles additional side effects for the Follow ActivityStreams
- // type.
- //
- // The wrapping callback only ensures the 'Follow' has at least one
- // 'object' entry, but otherwise has no default side effect.
- Follow func(context.Context, vocab.ActivityStreamsFollow) error
- // Add handles additional side effects for the Add ActivityStreams
- // type.
- //
- //
- // The wrapping function will add the 'object' IRIs to a specific
- // 'target' collection if the 'target' collection(s) live on this
- // server.
- Add func(context.Context, vocab.ActivityStreamsAdd) error
- // Remove handles additional side effects for the Remove ActivityStreams
- // type.
- //
- // The wrapping function will remove all 'object' IRIs from a specific
- // 'target' collection if the 'target' collection(s) live on this
- // server.
- Remove func(context.Context, vocab.ActivityStreamsRemove) error
- // Like handles additional side effects for the Like ActivityStreams
- // type.
- //
- // The wrapping function will add the objects on the activity to the
- // "liked" collection of this actor.
- Like func(context.Context, vocab.ActivityStreamsLike) error
- // Undo handles additional side effects for the Undo ActivityStreams
- // type.
- //
- //
- // The wrapping function ensures the 'actor' on the 'Undo'
- // is be the same as the 'actor' on all Activities being undone.
- // It enforces that the actors on the Undo must correspond to all of the
- // 'object' actors in some manner.
- //
- // It is expected that the application will implement the proper
- // reversal of activities that are being undone.
- Undo func(context.Context, vocab.ActivityStreamsUndo) error
- // Block handles additional side effects for the Block ActivityStreams
- // type.
- //
- // The wrapping callback only ensures the 'Block' has at least one
- // 'object' entry, but otherwise has no default side effect. It is up
- // to the wrapped application function to properly enforce the new
- // blocking behavior.
- //
- // Note that go-fed does not federate 'Block' activities received in the
- // Social Protocol.
- Block func(context.Context, vocab.ActivityStreamsBlock) error
-
- // Sidechannel data -- this is set at request handling time. These must
- // be set before the callbacks are used.
-
- // db is the Database the SocialWrappedCallbacks should use. It must be
- // set before calling the callbacks.
- db Database
- // outboxIRI is the outboxIRI that is handling this callback.
- outboxIRI *url.URL
- // rawActivity is the JSON map literal received when deserializing the
- // request body.
- rawActivity map[string]interface{}
- // clock is the server's clock.
- clock Clock
- // newTransport creates a new Transport.
- newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error)
- // undeliverable is a sidechannel out, indicating if the handled activity
- // should not be delivered to a peer.
- //
- // Its provided default value will always be used when a custom function
- // is called.
- undeliverable *bool
-}
-
-// callbacks returns the WrappedCallbacks members into a single interface slice
-// for use in streams.Resolver callbacks.
-//
-// If the given functions have a type that collides with the default behavior,
-// then disable our default behavior
-func (w SocialWrappedCallbacks) callbacks(fns []interface{}) []interface{} {
- enableCreate := true
- enableUpdate := true
- enableDelete := true
- enableFollow := true
- enableAdd := true
- enableRemove := true
- enableLike := true
- enableUndo := true
- enableBlock := true
- for _, fn := range fns {
- switch fn.(type) {
- default:
- continue
- case func(context.Context, vocab.ActivityStreamsCreate) error:
- enableCreate = false
- case func(context.Context, vocab.ActivityStreamsUpdate) error:
- enableUpdate = false
- case func(context.Context, vocab.ActivityStreamsDelete) error:
- enableDelete = false
- case func(context.Context, vocab.ActivityStreamsFollow) error:
- enableFollow = false
- case func(context.Context, vocab.ActivityStreamsAdd) error:
- enableAdd = false
- case func(context.Context, vocab.ActivityStreamsRemove) error:
- enableRemove = false
- case func(context.Context, vocab.ActivityStreamsLike) error:
- enableLike = false
- case func(context.Context, vocab.ActivityStreamsUndo) error:
- enableUndo = false
- case func(context.Context, vocab.ActivityStreamsBlock) error:
- enableBlock = false
- }
- }
- if enableCreate {
- fns = append(fns, w.create)
- }
- if enableUpdate {
- fns = append(fns, w.update)
- }
- if enableDelete {
- fns = append(fns, w.deleteFn)
- }
- if enableFollow {
- fns = append(fns, w.follow)
- }
- if enableAdd {
- fns = append(fns, w.add)
- }
- if enableRemove {
- fns = append(fns, w.remove)
- }
- if enableLike {
- fns = append(fns, w.like)
- }
- if enableUndo {
- fns = append(fns, w.undo)
- }
- if enableBlock {
- fns = append(fns, w.block)
- }
- return fns
-}
-
-// create implements the social Create activity side effects.
-func (w SocialWrappedCallbacks) create(c context.Context, a vocab.ActivityStreamsCreate) error {
- *w.undeliverable = false
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- // Obtain all actor IRIs.
- actors := a.GetActivityStreamsActor()
- createActorIds := make(map[string]*url.URL)
- if actors != nil {
- createActorIds = make(map[string]*url.URL, actors.Len())
- for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- createActorIds[id.String()] = id
- }
- }
- // Obtain each object's 'attributedTo' IRIs.
- objectAttributedToIds := make([]map[string]*url.URL, op.Len())
- for i := range objectAttributedToIds {
- objectAttributedToIds[i] = make(map[string]*url.URL)
- }
- for i := 0; i < op.Len(); i++ {
- t := op.At(i).GetType()
- attrToer, ok := t.(attributedToer)
- if !ok {
- continue
- }
- attr := attrToer.GetActivityStreamsAttributedTo()
- if attr == nil {
- attr = streams.NewActivityStreamsAttributedToProperty()
- attrToer.SetActivityStreamsAttributedTo(attr)
- }
- for iter := attr.Begin(); iter != attr.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- objectAttributedToIds[i][id.String()] = id
- }
- }
- // Put all missing actor IRIs onto all object attributedTo properties.
- for k, v := range createActorIds {
- for i, attributedToMap := range objectAttributedToIds {
- if _, ok := attributedToMap[k]; !ok {
- t := op.At(i).GetType()
- attrToer, ok := t.(attributedToer)
- if !ok {
- continue
- }
- attr := attrToer.GetActivityStreamsAttributedTo()
- attr.AppendIRI(v)
- }
- }
- }
- // Put all missing object attributedTo IRIs onto the actor property
- // if there is one.
- if actors != nil {
- for _, attributedToMap := range objectAttributedToIds {
- for k, v := range attributedToMap {
- if _, ok := createActorIds[k]; !ok {
- actors.AppendIRI(v)
- }
- }
- }
- }
- // Copy over the 'to', 'bto', 'cc', 'bcc', and 'audience' recipients
- // between the activity and all child objects and vice versa.
- if err := normalizeRecipients(a); err != nil {
- return err
- }
- // Create anonymous loop function to be able to properly scope the defer
- // for the database lock at each iteration.
- loopFn := func(i int) error {
- obj := op.At(i).GetType()
- id, err := GetId(obj)
- if err != nil {
- return err
- }
- err = w.db.Lock(c, id)
- if err != nil {
- return err
- }
- defer w.db.Unlock(c, id)
- if err := w.db.Create(c, obj); err != nil {
- return err
- }
- return nil
- }
- // Persist all objects we've created, which will include sensitive
- // recipients such as 'bcc' and 'bto'.
- for i := 0; i < op.Len(); i++ {
- if err := loopFn(i); err != nil {
- return err
- }
- }
- if w.Create != nil {
- return w.Create(c, a)
- }
- return nil
-}
-
-// update implements the social Update activity side effects.
-func (w SocialWrappedCallbacks) update(c context.Context, a vocab.ActivityStreamsUpdate) error {
- *w.undeliverable = false
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- // Obtain all object ids, which should be owned by this server.
- objIds := make([]*url.URL, 0, op.Len())
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- objIds = append(objIds, id)
- }
- // Create anonymous loop function to be able to properly scope the defer
- // for the database lock at each iteration.
- loopFn := func(idx int, loopId *url.URL) error {
- err := w.db.Lock(c, loopId)
- if err != nil {
- return err
- }
- defer w.db.Unlock(c, loopId)
- t, err := w.db.Get(c, loopId)
- if err != nil {
- return err
- }
- m, err := t.Serialize()
- if err != nil {
- return err
- }
- // Copy over new top-level values.
- objType := op.At(idx).GetType()
- if objType == nil {
- return fmt.Errorf("object at index %d is not a literal type value", idx)
- }
- newM, err := objType.Serialize()
- if err != nil {
- return err
- }
- for k, v := range newM {
- m[k] = v
- }
- // Delete top-level values where the raw Activity had nils.
- for k, v := range w.rawActivity {
- if _, ok := m[k]; v == nil && ok {
- delete(m, k)
- }
- }
- newT, err := streams.ToType(c, m)
- if err != nil {
- return err
- }
- if err = w.db.Update(c, newT); err != nil {
- return err
- }
- return nil
- }
- for i, id := range objIds {
- if err := loopFn(i, id); err != nil {
- return err
- }
- }
- if w.Update != nil {
- return w.Update(c, a)
- }
- return nil
-}
-
-// deleteFn implements the social Delete activity side effects.
-func (w SocialWrappedCallbacks) deleteFn(c context.Context, a vocab.ActivityStreamsDelete) error {
- *w.undeliverable = false
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- // Obtain all object ids, which should be owned by this server.
- objIds := make([]*url.URL, 0, op.Len())
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- objIds = append(objIds, id)
- }
- // Create anonymous loop function to be able to properly scope the defer
- // for the database lock at each iteration.
- loopFn := func(idx int, loopId *url.URL) error {
- err := w.db.Lock(c, loopId)
- if err != nil {
- return err
- }
- defer w.db.Unlock(c, loopId)
- t, err := w.db.Get(c, loopId)
- if err != nil {
- return err
- }
- tomb := toTombstone(t, loopId, w.clock.Now())
- if err := w.db.Update(c, tomb); err != nil {
- return err
- }
- return nil
- }
- for i, id := range objIds {
- if err := loopFn(i, id); err != nil {
- return err
- }
- }
- if w.Delete != nil {
- return w.Delete(c, a)
- }
- return nil
-}
-
-// follow implements the social Follow activity side effects.
-func (w SocialWrappedCallbacks) follow(c context.Context, a vocab.ActivityStreamsFollow) error {
- *w.undeliverable = false
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- if w.Follow != nil {
- return w.Follow(c, a)
- }
- return nil
-}
-
-// add implements the social Add activity side effects.
-func (w SocialWrappedCallbacks) add(c context.Context, a vocab.ActivityStreamsAdd) error {
- *w.undeliverable = false
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- target := a.GetActivityStreamsTarget()
- if target == nil || target.Len() == 0 {
- return ErrTargetRequired
- }
- if err := add(c, op, target, w.db); err != nil {
- return err
- }
- if w.Add != nil {
- return w.Add(c, a)
- }
- return nil
-}
-
-// remove implements the social Remove activity side effects.
-func (w SocialWrappedCallbacks) remove(c context.Context, a vocab.ActivityStreamsRemove) error {
- *w.undeliverable = false
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- target := a.GetActivityStreamsTarget()
- if target == nil || target.Len() == 0 {
- return ErrTargetRequired
- }
- if err := remove(c, op, target, w.db); err != nil {
- return err
- }
- if w.Remove != nil {
- return w.Remove(c, a)
- }
- return nil
-}
-
-// like implements the social Like activity side effects.
-func (w SocialWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsLike) error {
- *w.undeliverable = false
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- // Get this actor's IRI.
- if err := w.db.Lock(c, w.outboxIRI); err != nil {
- return err
- }
- // WARNING: Unlock not deferred.
- actorIRI, err := w.db.ActorForOutbox(c, w.outboxIRI)
- if err != nil {
- w.db.Unlock(c, w.outboxIRI)
- return err
- }
- w.db.Unlock(c, w.outboxIRI)
- // Unlock must be called by now and every branch above.
- //
- // Now obtain this actor's 'liked' collection.
- if err := w.db.Lock(c, actorIRI); err != nil {
- return err
- }
- defer w.db.Unlock(c, actorIRI)
- liked, err := w.db.Liked(c, actorIRI)
- if err != nil {
- return err
- }
- likedItems := liked.GetActivityStreamsItems()
- if likedItems == nil {
- likedItems = streams.NewActivityStreamsItemsProperty()
- liked.SetActivityStreamsItems(likedItems)
- }
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- objId, err := ToId(iter)
- if err != nil {
- return err
- }
- likedItems.PrependIRI(objId)
- }
- err = w.db.Update(c, liked)
- if err != nil {
- return err
- }
- if w.Like != nil {
- return w.Like(c, a)
- }
- return nil
-}
-
-// undo implements the social Undo activity side effects.
-func (w SocialWrappedCallbacks) undo(c context.Context, a vocab.ActivityStreamsUndo) error {
- *w.undeliverable = false
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- actors := a.GetActivityStreamsActor()
- if err := mustHaveActivityActorsMatchObjectActors(c, actors, op, w.newTransport, w.outboxIRI); err != nil {
- return err
- }
- if w.Undo != nil {
- return w.Undo(c, a)
- }
- return nil
-}
-
-// block implements the social Block activity side effects.
-func (w SocialWrappedCallbacks) block(c context.Context, a vocab.ActivityStreamsBlock) error {
- *w.undeliverable = true
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return ErrObjectRequired
- }
- if w.Block != nil {
- return w.Block(c, a)
- }
- return nil
-}
diff --git a/vendor/github.com/go-fed/activity/pub/util.go b/vendor/github.com/go-fed/activity/pub/util.go
deleted file mode 100644
index 942e937dc..000000000
--- a/vendor/github.com/go-fed/activity/pub/util.go
+++ /dev/null
@@ -1,995 +0,0 @@
-package pub
-
-import (
- "bytes"
- "context"
- "crypto/sha256"
- "encoding/base64"
- "encoding/json"
- "errors"
- "fmt"
- "github.com/go-fed/activity/streams"
- "github.com/go-fed/activity/streams/vocab"
- "net/http"
- "net/url"
- "strings"
- "time"
-)
-
-var (
- // ErrObjectRequired indicates the activity needs its object property
- // set. Can be returned by DelegateActor's PostInbox or PostOutbox so a
- // Bad Request response is set.
- ErrObjectRequired = errors.New("object property required on the provided activity")
- // ErrTargetRequired indicates the activity needs its target property
- // set. Can be returned by DelegateActor's PostInbox or PostOutbox so a
- // Bad Request response is set.
- ErrTargetRequired = errors.New("target property required on the provided activity")
-)
-
-// activityStreamsMediaTypes contains all of the accepted ActivityStreams media
-// types. Generated at init time.
-var activityStreamsMediaTypes []string
-
-func init() {
- activityStreamsMediaTypes = []string{
- "application/activity+json",
- }
- jsonLdType := "application/ld+json"
- for _, semi := range []string{";", " ;", " ; ", "; "} {
- for _, profile := range []string{
- "profile=https://www.w3.org/ns/activitystreams",
- "profile=\"https://www.w3.org/ns/activitystreams\"",
- } {
- activityStreamsMediaTypes = append(
- activityStreamsMediaTypes,
- fmt.Sprintf("%s%s%s", jsonLdType, semi, profile))
- }
- }
-}
-
-// headerIsActivityPubMediaType returns true if the header string contains one
-// of the accepted ActivityStreams media types.
-//
-// Note we don't try to build a comprehensive parser and instead accept a
-// tolerable amount of whitespace since the HTTP specification is ambiguous
-// about the format and significance of whitespace.
-func headerIsActivityPubMediaType(header string) bool {
- for _, mediaType := range activityStreamsMediaTypes {
- if strings.Contains(header, mediaType) {
- return true
- }
- }
- return false
-}
-
-const (
- // The Content-Type header.
- contentTypeHeader = "Content-Type"
- // The Accept header.
- acceptHeader = "Accept"
-)
-
-// isActivityPubPost returns true if the request is a POST request that has the
-// ActivityStreams content type header
-func isActivityPubPost(r *http.Request) bool {
- return r.Method == "POST" && headerIsActivityPubMediaType(r.Header.Get(contentTypeHeader))
-}
-
-// isActivityPubGet returns true if the request is a GET request that has the
-// ActivityStreams content type header
-func isActivityPubGet(r *http.Request) bool {
- return r.Method == "GET" && headerIsActivityPubMediaType(r.Header.Get(acceptHeader))
-}
-
-// dedupeOrderedItems deduplicates the 'orderedItems' within an ordered
-// collection type. Deduplication happens by the 'id' property.
-func dedupeOrderedItems(oc orderedItemser) error {
- oi := oc.GetActivityStreamsOrderedItems()
- if oi == nil {
- return nil
- }
- seen := make(map[string]bool, oi.Len())
- for i := 0; i < oi.Len(); {
- var id *url.URL
-
- iter := oi.At(i)
- asType := iter.GetType()
- if asType != nil {
- var err error
- id, err = GetId(asType)
- if err != nil {
- return err
- }
- } else if iter.IsIRI() {
- id = iter.GetIRI()
- } else {
- return fmt.Errorf("element %d in OrderedCollection does not have an ID nor is an IRI", i)
- }
- if seen[id.String()] {
- oi.Remove(i)
- } else {
- seen[id.String()] = true
- i++
- }
- }
- return nil
-}
-
-const (
- // The Location header
- locationHeader = "Location"
- // Contains the ActivityStreams Content-Type value.
- contentTypeHeaderValue = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""
- // The Date header.
- dateHeader = "Date"
- // The Digest header.
- digestHeader = "Digest"
- // The delimiter used in the Digest header.
- digestDelimiter = "="
- // SHA-256 string for the Digest header.
- sha256Digest = "SHA-256"
-)
-
-// addResponseHeaders sets headers needed in the HTTP response, such but not
-// limited to the Content-Type, Date, and Digest headers.
-func addResponseHeaders(h http.Header, c Clock, responseContent []byte) {
- h.Set(contentTypeHeader, contentTypeHeaderValue)
- // RFC 7231 §7.1.1.2
- h.Set(dateHeader, c.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT")
- // RFC 3230 and RFC 5843
- var b bytes.Buffer
- b.WriteString(sha256Digest)
- b.WriteString(digestDelimiter)
- hashed := sha256.Sum256(responseContent)
- b.WriteString(base64.StdEncoding.EncodeToString(hashed[:]))
- h.Set(digestHeader, b.String())
-}
-
-// IdProperty is a property that can readily have its id obtained
-type IdProperty interface {
- // GetIRI returns the IRI of this property. When IsIRI returns false,
- // GetIRI will return an arbitrary value.
- GetIRI() *url.URL
- // GetType returns the value in this property as a Type. Returns nil if
- // the value is not an ActivityStreams type, such as an IRI or another
- // value.
- GetType() vocab.Type
- // IsIRI returns true if this property is an IRI.
- IsIRI() bool
-}
-
-// ToId returns an IdProperty's id.
-func ToId(i IdProperty) (*url.URL, error) {
- if i.GetType() != nil {
- return GetId(i.GetType())
- } else if i.IsIRI() {
- return i.GetIRI(), nil
- }
- return nil, fmt.Errorf("cannot determine id of activitystreams property")
-}
-
-// GetId will attempt to find the 'id' property or, if it happens to be a
-// Link or derived from Link type, the 'href' property instead.
-//
-// Returns an error if the id is not set and either the 'href' property is not
-// valid on this type, or it is also not set.
-func GetId(t vocab.Type) (*url.URL, error) {
- if id := t.GetJSONLDId(); id != nil {
- return id.Get(), nil
- } else if h, ok := t.(hrefer); ok {
- if href := h.GetActivityStreamsHref(); href != nil {
- return href.Get(), nil
- }
- }
- return nil, fmt.Errorf("cannot determine id of activitystreams value")
-}
-
-// getInboxForwardingValues obtains the 'inReplyTo', 'object', 'target', and
-// 'tag' values on an ActivityStreams value.
-func getInboxForwardingValues(o vocab.Type) (t []vocab.Type, iri []*url.URL) {
- // 'inReplyTo'
- if i, ok := o.(inReplyToer); ok {
- if irt := i.GetActivityStreamsInReplyTo(); irt != nil {
- for iter := irt.Begin(); iter != irt.End(); iter = iter.Next() {
- if tv := iter.GetType(); tv != nil {
- t = append(t, tv)
- } else {
- iri = append(iri, iter.GetIRI())
- }
- }
- }
- }
- // 'tag'
- if i, ok := o.(tagger); ok {
- if tag := i.GetActivityStreamsTag(); tag != nil {
- for iter := tag.Begin(); iter != tag.End(); iter = iter.Next() {
- if tv := iter.GetType(); tv != nil {
- t = append(t, tv)
- } else {
- iri = append(iri, iter.GetIRI())
- }
- }
- }
- }
- // 'object'
- if i, ok := o.(objecter); ok {
- if obj := i.GetActivityStreamsObject(); obj != nil {
- for iter := obj.Begin(); iter != obj.End(); iter = iter.Next() {
- if tv := iter.GetType(); tv != nil {
- t = append(t, tv)
- } else {
- iri = append(iri, iter.GetIRI())
- }
- }
- }
- }
- // 'target'
- if i, ok := o.(targeter); ok {
- if tar := i.GetActivityStreamsTarget(); tar != nil {
- for iter := tar.Begin(); iter != tar.End(); iter = iter.Next() {
- if tv := iter.GetType(); tv != nil {
- t = append(t, tv)
- } else {
- iri = append(iri, iter.GetIRI())
- }
- }
- }
- }
- return
-}
-
-// wrapInCreate will automatically wrap the provided object in a Create
-// activity. This will copy over the 'to', 'bto', 'cc', 'bcc', and 'audience'
-// properties. It will also copy over the published time if present.
-func wrapInCreate(ctx context.Context, o vocab.Type, actor *url.URL) (c vocab.ActivityStreamsCreate, err error) {
- c = streams.NewActivityStreamsCreate()
- // Object property
- oProp := streams.NewActivityStreamsObjectProperty()
- oProp.AppendType(o)
- c.SetActivityStreamsObject(oProp)
- // Actor Property
- actorProp := streams.NewActivityStreamsActorProperty()
- actorProp.AppendIRI(actor)
- c.SetActivityStreamsActor(actorProp)
- // Published Property
- if v, ok := o.(publisheder); ok {
- c.SetActivityStreamsPublished(v.GetActivityStreamsPublished())
- }
- // Copying over properties.
- if v, ok := o.(toer); ok {
- if to := v.GetActivityStreamsTo(); to != nil {
- activityTo := streams.NewActivityStreamsToProperty()
- for iter := to.Begin(); iter != to.End(); iter = iter.Next() {
- var id *url.URL
- id, err = ToId(iter)
- if err != nil {
- return
- }
- activityTo.AppendIRI(id)
- }
- c.SetActivityStreamsTo(activityTo)
- }
- }
- if v, ok := o.(btoer); ok {
- if bto := v.GetActivityStreamsBto(); bto != nil {
- activityBto := streams.NewActivityStreamsBtoProperty()
- for iter := bto.Begin(); iter != bto.End(); iter = iter.Next() {
- var id *url.URL
- id, err = ToId(iter)
- if err != nil {
- return
- }
- activityBto.AppendIRI(id)
- }
- c.SetActivityStreamsBto(activityBto)
- }
- }
- if v, ok := o.(ccer); ok {
- if cc := v.GetActivityStreamsCc(); cc != nil {
- activityCc := streams.NewActivityStreamsCcProperty()
- for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() {
- var id *url.URL
- id, err = ToId(iter)
- if err != nil {
- return
- }
- activityCc.AppendIRI(id)
- }
- c.SetActivityStreamsCc(activityCc)
- }
- }
- if v, ok := o.(bccer); ok {
- if bcc := v.GetActivityStreamsBcc(); bcc != nil {
- activityBcc := streams.NewActivityStreamsBccProperty()
- for iter := bcc.Begin(); iter != bcc.End(); iter = iter.Next() {
- var id *url.URL
- id, err = ToId(iter)
- if err != nil {
- return
- }
- activityBcc.AppendIRI(id)
- }
- c.SetActivityStreamsBcc(activityBcc)
- }
- }
- if v, ok := o.(audiencer); ok {
- if aud := v.GetActivityStreamsAudience(); aud != nil {
- activityAudience := streams.NewActivityStreamsAudienceProperty()
- for iter := aud.Begin(); iter != aud.End(); iter = iter.Next() {
- var id *url.URL
- id, err = ToId(iter)
- if err != nil {
- return
- }
- activityAudience.AppendIRI(id)
- }
- c.SetActivityStreamsAudience(activityAudience)
- }
- }
- return
-}
-
-// filterURLs removes urls whose strings match the provided filter
-func filterURLs(u []*url.URL, fn func(s string) bool) []*url.URL {
- i := 0
- for i < len(u) {
- if fn(u[i].String()) {
- u = append(u[:i], u[i+1:]...)
- } else {
- i++
- }
- }
- return u
-}
-
-const (
- // PublicActivityPubIRI is the IRI that indicates an Activity is meant
- // to be visible for general public consumption.
- PublicActivityPubIRI = "https://www.w3.org/ns/activitystreams#Public"
- publicJsonLD = "Public"
- publicJsonLDAS = "as:Public"
-)
-
-// IsPublic determines if an IRI string is the Public collection as defined in
-// the spec, including JSON-LD compliant collections.
-func IsPublic(s string) bool {
- return s == PublicActivityPubIRI || s == publicJsonLD || s == publicJsonLDAS
-}
-
-// getInboxes extracts the 'inbox' IRIs from actor types.
-func getInboxes(t []vocab.Type) (u []*url.URL, err error) {
- for _, elem := range t {
- var iri *url.URL
- iri, err = getInbox(elem)
- if err != nil {
- return
- }
- u = append(u, iri)
- }
- return
-}
-
-// getInbox extracts the 'inbox' IRI from an actor type.
-func getInbox(t vocab.Type) (u *url.URL, err error) {
- ib, ok := t.(inboxer)
- if !ok {
- err = fmt.Errorf("actor type %T has no inbox", t)
- return
- }
- inbox := ib.GetActivityStreamsInbox()
- return ToId(inbox)
-}
-
-// dedupeIRIs will deduplicate final inbox IRIs. The ignore list is applied to
-// the final list.
-func dedupeIRIs(recipients, ignored []*url.URL) (out []*url.URL) {
- ignoredMap := make(map[string]bool, len(ignored))
- for _, elem := range ignored {
- ignoredMap[elem.String()] = true
- }
- outMap := make(map[string]bool, len(recipients))
- for _, k := range recipients {
- kStr := k.String()
- if !ignoredMap[kStr] && !outMap[kStr] {
- out = append(out, k)
- outMap[kStr] = true
- }
- }
- return
-}
-
-// stripHiddenRecipients removes "bto" and "bcc" from the activity.
-//
-// Note that this requirement of the specification is under "Section 6: Client
-// to Server Interactions", the Social API, and not the Federative API.
-func stripHiddenRecipients(activity Activity) {
- activity.SetActivityStreamsBto(nil)
- activity.SetActivityStreamsBcc(nil)
- op := activity.GetActivityStreamsObject()
- if op != nil {
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- if v, ok := iter.GetType().(btoer); ok {
- v.SetActivityStreamsBto(nil)
- }
- if v, ok := iter.GetType().(bccer); ok {
- v.SetActivityStreamsBcc(nil)
- }
- }
- }
-}
-
-// mustHaveActivityOriginMatchObjects ensures that the Host in the activity id
-// IRI matches all of the Hosts in the object id IRIs.
-func mustHaveActivityOriginMatchObjects(a Activity) error {
- originIRI, err := GetId(a)
- if err != nil {
- return err
- }
- originHost := originIRI.Host
- op := a.GetActivityStreamsObject()
- if op == nil || op.Len() == 0 {
- return nil
- }
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- iri, err := ToId(iter)
- if err != nil {
- return err
- }
- if originHost != iri.Host {
- return fmt.Errorf("object %q: not in activity origin", iri)
- }
- }
- return nil
-}
-
-// normalizeRecipients ensures the activity and object have the same 'to',
-// 'bto', 'cc', 'bcc', and 'audience' properties. Copy the Activity's recipients
-// to objects, and the objects to the activity, but does NOT copy objects'
-// recipients to each other.
-func normalizeRecipients(a vocab.ActivityStreamsCreate) error {
- // Phase 0: Acquire all recipients on the activity.
- //
- // Obtain the actorTo map
- actorToMap := make(map[string]*url.URL)
- actorTo := a.GetActivityStreamsTo()
- if actorTo == nil {
- actorTo = streams.NewActivityStreamsToProperty()
- a.SetActivityStreamsTo(actorTo)
- }
- for iter := actorTo.Begin(); iter != actorTo.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- actorToMap[id.String()] = id
- }
- // Obtain the actorBto map
- actorBtoMap := make(map[string]*url.URL)
- actorBto := a.GetActivityStreamsBto()
- if actorBto == nil {
- actorBto = streams.NewActivityStreamsBtoProperty()
- a.SetActivityStreamsBto(actorBto)
- }
- for iter := actorBto.Begin(); iter != actorBto.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- actorBtoMap[id.String()] = id
- }
- // Obtain the actorCc map
- actorCcMap := make(map[string]*url.URL)
- actorCc := a.GetActivityStreamsCc()
- if actorCc == nil {
- actorCc = streams.NewActivityStreamsCcProperty()
- a.SetActivityStreamsCc(actorCc)
- }
- for iter := actorCc.Begin(); iter != actorCc.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- actorCcMap[id.String()] = id
- }
- // Obtain the actorBcc map
- actorBccMap := make(map[string]*url.URL)
- actorBcc := a.GetActivityStreamsBcc()
- if actorBcc == nil {
- actorBcc = streams.NewActivityStreamsBccProperty()
- a.SetActivityStreamsBcc(actorBcc)
- }
- for iter := actorBcc.Begin(); iter != actorBcc.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- actorBccMap[id.String()] = id
- }
- // Obtain the actorAudience map
- actorAudienceMap := make(map[string]*url.URL)
- actorAudience := a.GetActivityStreamsAudience()
- if actorAudience == nil {
- actorAudience = streams.NewActivityStreamsAudienceProperty()
- a.SetActivityStreamsAudience(actorAudience)
- }
- for iter := actorAudience.Begin(); iter != actorAudience.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- actorAudienceMap[id.String()] = id
- }
- // Obtain the objects maps for each recipient type.
- o := a.GetActivityStreamsObject()
- objsTo := make([]map[string]*url.URL, o.Len())
- objsBto := make([]map[string]*url.URL, o.Len())
- objsCc := make([]map[string]*url.URL, o.Len())
- objsBcc := make([]map[string]*url.URL, o.Len())
- objsAudience := make([]map[string]*url.URL, o.Len())
- for i := 0; i < o.Len(); i++ {
- iter := o.At(i)
- // Phase 1: Acquire all existing recipients on the object.
- //
- // Object to
- objsTo[i] = make(map[string]*url.URL)
- var oTo vocab.ActivityStreamsToProperty
- if tr, ok := iter.GetType().(toer); !ok {
- return fmt.Errorf("the Create object at %d has no 'to' property", i)
- } else {
- oTo = tr.GetActivityStreamsTo()
- if oTo == nil {
- oTo = streams.NewActivityStreamsToProperty()
- tr.SetActivityStreamsTo(oTo)
- }
- }
- for iter := oTo.Begin(); iter != oTo.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- objsTo[i][id.String()] = id
- }
- // Object bto
- objsBto[i] = make(map[string]*url.URL)
- var oBto vocab.ActivityStreamsBtoProperty
- if tr, ok := iter.GetType().(btoer); !ok {
- return fmt.Errorf("the Create object at %d has no 'bto' property", i)
- } else {
- oBto = tr.GetActivityStreamsBto()
- if oBto == nil {
- oBto = streams.NewActivityStreamsBtoProperty()
- tr.SetActivityStreamsBto(oBto)
- }
- }
- for iter := oBto.Begin(); iter != oBto.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- objsBto[i][id.String()] = id
- }
- // Object cc
- objsCc[i] = make(map[string]*url.URL)
- var oCc vocab.ActivityStreamsCcProperty
- if tr, ok := iter.GetType().(ccer); !ok {
- return fmt.Errorf("the Create object at %d has no 'cc' property", i)
- } else {
- oCc = tr.GetActivityStreamsCc()
- if oCc == nil {
- oCc = streams.NewActivityStreamsCcProperty()
- tr.SetActivityStreamsCc(oCc)
- }
- }
- for iter := oCc.Begin(); iter != oCc.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- objsCc[i][id.String()] = id
- }
- // Object bcc
- objsBcc[i] = make(map[string]*url.URL)
- var oBcc vocab.ActivityStreamsBccProperty
- if tr, ok := iter.GetType().(bccer); !ok {
- return fmt.Errorf("the Create object at %d has no 'bcc' property", i)
- } else {
- oBcc = tr.GetActivityStreamsBcc()
- if oBcc == nil {
- oBcc = streams.NewActivityStreamsBccProperty()
- tr.SetActivityStreamsBcc(oBcc)
- }
- }
- for iter := oBcc.Begin(); iter != oBcc.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- objsBcc[i][id.String()] = id
- }
- // Object audience
- objsAudience[i] = make(map[string]*url.URL)
- var oAudience vocab.ActivityStreamsAudienceProperty
- if tr, ok := iter.GetType().(audiencer); !ok {
- return fmt.Errorf("the Create object at %d has no 'audience' property", i)
- } else {
- oAudience = tr.GetActivityStreamsAudience()
- if oAudience == nil {
- oAudience = streams.NewActivityStreamsAudienceProperty()
- tr.SetActivityStreamsAudience(oAudience)
- }
- }
- for iter := oAudience.Begin(); iter != oAudience.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- objsAudience[i][id.String()] = id
- }
- // Phase 2: Apply missing recipients to the object from the
- // activity.
- //
- // Activity to -> Object to
- for k, v := range actorToMap {
- if _, ok := objsTo[i][k]; !ok {
- oTo.AppendIRI(v)
- }
- }
- // Activity bto -> Object bto
- for k, v := range actorBtoMap {
- if _, ok := objsBto[i][k]; !ok {
- oBto.AppendIRI(v)
- }
- }
- // Activity cc -> Object cc
- for k, v := range actorCcMap {
- if _, ok := objsCc[i][k]; !ok {
- oCc.AppendIRI(v)
- }
- }
- // Activity bcc -> Object bcc
- for k, v := range actorBccMap {
- if _, ok := objsBcc[i][k]; !ok {
- oBcc.AppendIRI(v)
- }
- }
- // Activity audience -> Object audience
- for k, v := range actorAudienceMap {
- if _, ok := objsAudience[i][k]; !ok {
- oAudience.AppendIRI(v)
- }
- }
- }
- // Phase 3: Apply missing recipients to the activity from the objects.
- //
- // Object to -> Activity to
- for i := 0; i < len(objsTo); i++ {
- for k, v := range objsTo[i] {
- if _, ok := actorToMap[k]; !ok {
- actorTo.AppendIRI(v)
- }
- }
- }
- // Object bto -> Activity bto
- for i := 0; i < len(objsBto); i++ {
- for k, v := range objsBto[i] {
- if _, ok := actorBtoMap[k]; !ok {
- actorBto.AppendIRI(v)
- }
- }
- }
- // Object cc -> Activity cc
- for i := 0; i < len(objsCc); i++ {
- for k, v := range objsCc[i] {
- if _, ok := actorCcMap[k]; !ok {
- actorCc.AppendIRI(v)
- }
- }
- }
- // Object bcc -> Activity bcc
- for i := 0; i < len(objsBcc); i++ {
- for k, v := range objsBcc[i] {
- if _, ok := actorBccMap[k]; !ok {
- actorBcc.AppendIRI(v)
- }
- }
- }
- // Object audience -> Activity audience
- for i := 0; i < len(objsAudience); i++ {
- for k, v := range objsAudience[i] {
- if _, ok := actorAudienceMap[k]; !ok {
- actorAudience.AppendIRI(v)
- }
- }
- }
- return nil
-}
-
-// toTombstone creates a Tombstone object for the given ActivityStreams value.
-func toTombstone(obj vocab.Type, id *url.URL, now time.Time) vocab.ActivityStreamsTombstone {
- tomb := streams.NewActivityStreamsTombstone()
- // id property
- idProp := streams.NewJSONLDIdProperty()
- idProp.Set(id)
- tomb.SetJSONLDId(idProp)
- // formerType property
- former := streams.NewActivityStreamsFormerTypeProperty()
- tomb.SetActivityStreamsFormerType(former)
- // Populate Former Type
- former.AppendXMLSchemaString(obj.GetTypeName())
- // Copy over the published property if it existed
- if pubber, ok := obj.(publisheder); ok {
- if pub := pubber.GetActivityStreamsPublished(); pub != nil {
- tomb.SetActivityStreamsPublished(pub)
- }
- }
- // Copy over the updated property if it existed
- if upder, ok := obj.(updateder); ok {
- if upd := upder.GetActivityStreamsUpdated(); upd != nil {
- tomb.SetActivityStreamsUpdated(upd)
- }
- }
- // Set deleted time to now.
- deleted := streams.NewActivityStreamsDeletedProperty()
- deleted.Set(now)
- tomb.SetActivityStreamsDeleted(deleted)
- return tomb
-}
-
-// mustHaveActivityActorsMatchObjectActors ensures that the actors on types in
-// the 'object' property are all listed in the 'actor' property.
-func mustHaveActivityActorsMatchObjectActors(c context.Context,
- actors vocab.ActivityStreamsActorProperty,
- op vocab.ActivityStreamsObjectProperty,
- newTransport func(c context.Context, actorBoxIRI *url.URL, gofedAgent string) (t Transport, err error),
- boxIRI *url.URL) error {
- activityActorMap := make(map[string]bool, actors.Len())
- for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- activityActorMap[id.String()] = true
- }
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- iri, err := ToId(iter)
- if err != nil {
- return err
- }
- // Attempt to dereference the IRI, regardless whether it is a
- // type or IRI
- tport, err := newTransport(c, boxIRI, goFedUserAgent())
- if err != nil {
- return err
- }
- b, err := tport.Dereference(c, iri)
- if err != nil {
- return err
- }
- var m map[string]interface{}
- if err = json.Unmarshal(b, &m); err != nil {
- return err
- }
- t, err := streams.ToType(c, m)
- if err != nil {
- return err
- }
- ac, ok := t.(actorer)
- if !ok {
- return fmt.Errorf("cannot verify actors: object value has no 'actor' property")
- }
- objActors := ac.GetActivityStreamsActor()
- for iter := objActors.Begin(); iter != objActors.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- if !activityActorMap[id.String()] {
- return fmt.Errorf("activity does not have all actors from its object's actors")
- }
- }
- }
- return nil
-}
-
-// add implements the logic of adding object ids to a target Collection or
-// OrderedCollection. This logic is shared by both the C2S and S2S protocols.
-func add(c context.Context,
- op vocab.ActivityStreamsObjectProperty,
- target vocab.ActivityStreamsTargetProperty,
- db Database) error {
- opIds := make([]*url.URL, 0, op.Len())
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- opIds = append(opIds, id)
- }
- targetIds := make([]*url.URL, 0, op.Len())
- for iter := target.Begin(); iter != target.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- targetIds = append(targetIds, id)
- }
- // Create anonymous loop function to be able to properly scope the defer
- // for the database lock at each iteration.
- loopFn := func(t *url.URL) error {
- if err := db.Lock(c, t); err != nil {
- return err
- }
- defer db.Unlock(c, t)
- if owns, err := db.Owns(c, t); err != nil {
- return err
- } else if !owns {
- return nil
- }
- tp, err := db.Get(c, t)
- if err != nil {
- return err
- }
- if streams.IsOrExtendsActivityStreamsOrderedCollection(tp) {
- oi, ok := tp.(orderedItemser)
- if !ok {
- return fmt.Errorf("type extending from OrderedCollection cannot convert to orderedItemser interface")
- }
- oiProp := oi.GetActivityStreamsOrderedItems()
- if oiProp == nil {
- oiProp = streams.NewActivityStreamsOrderedItemsProperty()
- oi.SetActivityStreamsOrderedItems(oiProp)
- }
- for _, objId := range opIds {
- oiProp.AppendIRI(objId)
- }
- } else if streams.IsOrExtendsActivityStreamsCollection(tp) {
- i, ok := tp.(itemser)
- if !ok {
- return fmt.Errorf("type extending from Collection cannot convert to itemser interface")
- }
- iProp := i.GetActivityStreamsItems()
- if iProp == nil {
- iProp = streams.NewActivityStreamsItemsProperty()
- i.SetActivityStreamsItems(iProp)
- }
- for _, objId := range opIds {
- iProp.AppendIRI(objId)
- }
- } else {
- return fmt.Errorf("target in Add is neither a Collection nor an OrderedCollection")
- }
- err = db.Update(c, tp)
- if err != nil {
- return err
- }
- return nil
- }
- for _, t := range targetIds {
- if err := loopFn(t); err != nil {
- return err
- }
- }
- return nil
-}
-
-// remove implements the logic of removing object ids to a target Collection or
-// OrderedCollection. This logic is shared by both the C2S and S2S protocols.
-func remove(c context.Context,
- op vocab.ActivityStreamsObjectProperty,
- target vocab.ActivityStreamsTargetProperty,
- db Database) error {
- opIds := make(map[string]bool, op.Len())
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- opIds[id.String()] = true
- }
- targetIds := make([]*url.URL, 0, op.Len())
- for iter := target.Begin(); iter != target.End(); iter = iter.Next() {
- id, err := ToId(iter)
- if err != nil {
- return err
- }
- targetIds = append(targetIds, id)
- }
- // Create anonymous loop function to be able to properly scope the defer
- // for the database lock at each iteration.
- loopFn := func(t *url.URL) error {
- if err := db.Lock(c, t); err != nil {
- return err
- }
- defer db.Unlock(c, t)
- if owns, err := db.Owns(c, t); err != nil {
- return err
- } else if !owns {
- return nil
- }
- tp, err := db.Get(c, t)
- if err != nil {
- return err
- }
- if streams.IsOrExtendsActivityStreamsOrderedCollection(tp) {
- oi, ok := tp.(orderedItemser)
- if !ok {
- return fmt.Errorf("type extending from OrderedCollection cannot convert to orderedItemser interface")
- }
- oiProp := oi.GetActivityStreamsOrderedItems()
- if oiProp != nil {
- for i := 0; i < oiProp.Len(); /*Conditional*/ {
- id, err := ToId(oiProp.At(i))
- if err != nil {
- return err
- }
- if opIds[id.String()] {
- oiProp.Remove(i)
- } else {
- i++
- }
- }
- }
- } else if streams.IsOrExtendsActivityStreamsCollection(tp) {
- i, ok := tp.(itemser)
- if !ok {
- return fmt.Errorf("type extending from Collection cannot convert to itemser interface")
- }
- iProp := i.GetActivityStreamsItems()
- if iProp != nil {
- for i := 0; i < iProp.Len(); /*Conditional*/ {
- id, err := ToId(iProp.At(i))
- if err != nil {
- return err
- }
- if opIds[id.String()] {
- iProp.Remove(i)
- } else {
- i++
- }
- }
- }
- } else {
- return fmt.Errorf("target in Remove is neither a Collection nor an OrderedCollection")
- }
- err = db.Update(c, tp)
- if err != nil {
- return err
- }
- return nil
- }
- for _, t := range targetIds {
- if err := loopFn(t); err != nil {
- return err
- }
- }
- return nil
-}
-
-// clearSensitiveFields removes the 'bto' and 'bcc' entries on the given value
-// and recursively on every 'object' property value.
-func clearSensitiveFields(obj vocab.Type) {
- if t, ok := obj.(btoer); ok {
- t.SetActivityStreamsBto(nil)
- }
- if t, ok := obj.(bccer); ok {
- t.SetActivityStreamsBcc(nil)
- }
- if t, ok := obj.(objecter); ok {
- op := t.GetActivityStreamsObject()
- if op != nil {
- for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
- clearSensitiveFields(iter.GetType())
- }
- }
- }
-}
-
-// requestId forms an ActivityPub id based on the HTTP request. Always assumes
-// that the id is HTTPS.
-func requestId(r *http.Request, scheme string) *url.URL {
- id := r.URL
- id.Host = r.Host
- id.Scheme = scheme
- return id
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_consts.go b/vendor/github.com/go-fed/activity/streams/gen_consts.go
deleted file mode 100644
index 795d0e90c..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_consts.go
+++ /dev/null
@@ -1,504 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-// ActivityStreamsAcceptName is the string literal of the name for the Accept type in the ActivityStreams vocabulary.
-var ActivityStreamsAcceptName string = "Accept"
-
-// ActivityStreamsActivityName is the string literal of the name for the Activity type in the ActivityStreams vocabulary.
-var ActivityStreamsActivityName string = "Activity"
-
-// ActivityStreamsAddName is the string literal of the name for the Add type in the ActivityStreams vocabulary.
-var ActivityStreamsAddName string = "Add"
-
-// ActivityStreamsAnnounceName is the string literal of the name for the Announce type in the ActivityStreams vocabulary.
-var ActivityStreamsAnnounceName string = "Announce"
-
-// ActivityStreamsApplicationName is the string literal of the name for the Application type in the ActivityStreams vocabulary.
-var ActivityStreamsApplicationName string = "Application"
-
-// ActivityStreamsArriveName is the string literal of the name for the Arrive type in the ActivityStreams vocabulary.
-var ActivityStreamsArriveName string = "Arrive"
-
-// ActivityStreamsArticleName is the string literal of the name for the Article type in the ActivityStreams vocabulary.
-var ActivityStreamsArticleName string = "Article"
-
-// ActivityStreamsAudioName is the string literal of the name for the Audio type in the ActivityStreams vocabulary.
-var ActivityStreamsAudioName string = "Audio"
-
-// ActivityStreamsBlockName is the string literal of the name for the Block type in the ActivityStreams vocabulary.
-var ActivityStreamsBlockName string = "Block"
-
-// ForgeFedBranchName is the string literal of the name for the Branch type in the ForgeFed vocabulary.
-var ForgeFedBranchName string = "Branch"
-
-// ActivityStreamsCollectionName is the string literal of the name for the Collection type in the ActivityStreams vocabulary.
-var ActivityStreamsCollectionName string = "Collection"
-
-// ActivityStreamsCollectionPageName is the string literal of the name for the CollectionPage type in the ActivityStreams vocabulary.
-var ActivityStreamsCollectionPageName string = "CollectionPage"
-
-// ForgeFedCommitName is the string literal of the name for the Commit type in the ForgeFed vocabulary.
-var ForgeFedCommitName string = "Commit"
-
-// ActivityStreamsCreateName is the string literal of the name for the Create type in the ActivityStreams vocabulary.
-var ActivityStreamsCreateName string = "Create"
-
-// ActivityStreamsDeleteName is the string literal of the name for the Delete type in the ActivityStreams vocabulary.
-var ActivityStreamsDeleteName string = "Delete"
-
-// ActivityStreamsDislikeName is the string literal of the name for the Dislike type in the ActivityStreams vocabulary.
-var ActivityStreamsDislikeName string = "Dislike"
-
-// ActivityStreamsDocumentName is the string literal of the name for the Document type in the ActivityStreams vocabulary.
-var ActivityStreamsDocumentName string = "Document"
-
-// TootEmojiName is the string literal of the name for the Emoji type in the Toot vocabulary.
-var TootEmojiName string = "Emoji"
-
-// ActivityStreamsEventName is the string literal of the name for the Event type in the ActivityStreams vocabulary.
-var ActivityStreamsEventName string = "Event"
-
-// ActivityStreamsFlagName is the string literal of the name for the Flag type in the ActivityStreams vocabulary.
-var ActivityStreamsFlagName string = "Flag"
-
-// ActivityStreamsFollowName is the string literal of the name for the Follow type in the ActivityStreams vocabulary.
-var ActivityStreamsFollowName string = "Follow"
-
-// ActivityStreamsGroupName is the string literal of the name for the Group type in the ActivityStreams vocabulary.
-var ActivityStreamsGroupName string = "Group"
-
-// TootIdentityProofName is the string literal of the name for the IdentityProof type in the Toot vocabulary.
-var TootIdentityProofName string = "IdentityProof"
-
-// ActivityStreamsIgnoreName is the string literal of the name for the Ignore type in the ActivityStreams vocabulary.
-var ActivityStreamsIgnoreName string = "Ignore"
-
-// ActivityStreamsImageName is the string literal of the name for the Image type in the ActivityStreams vocabulary.
-var ActivityStreamsImageName string = "Image"
-
-// ActivityStreamsIntransitiveActivityName is the string literal of the name for the IntransitiveActivity type in the ActivityStreams vocabulary.
-var ActivityStreamsIntransitiveActivityName string = "IntransitiveActivity"
-
-// ActivityStreamsInviteName is the string literal of the name for the Invite type in the ActivityStreams vocabulary.
-var ActivityStreamsInviteName string = "Invite"
-
-// ActivityStreamsJoinName is the string literal of the name for the Join type in the ActivityStreams vocabulary.
-var ActivityStreamsJoinName string = "Join"
-
-// ActivityStreamsLeaveName is the string literal of the name for the Leave type in the ActivityStreams vocabulary.
-var ActivityStreamsLeaveName string = "Leave"
-
-// ActivityStreamsLikeName is the string literal of the name for the Like type in the ActivityStreams vocabulary.
-var ActivityStreamsLikeName string = "Like"
-
-// ActivityStreamsLinkName is the string literal of the name for the Link type in the ActivityStreams vocabulary.
-var ActivityStreamsLinkName string = "Link"
-
-// ActivityStreamsListenName is the string literal of the name for the Listen type in the ActivityStreams vocabulary.
-var ActivityStreamsListenName string = "Listen"
-
-// ActivityStreamsMentionName is the string literal of the name for the Mention type in the ActivityStreams vocabulary.
-var ActivityStreamsMentionName string = "Mention"
-
-// ActivityStreamsMoveName is the string literal of the name for the Move type in the ActivityStreams vocabulary.
-var ActivityStreamsMoveName string = "Move"
-
-// ActivityStreamsNoteName is the string literal of the name for the Note type in the ActivityStreams vocabulary.
-var ActivityStreamsNoteName string = "Note"
-
-// ActivityStreamsObjectName is the string literal of the name for the Object type in the ActivityStreams vocabulary.
-var ActivityStreamsObjectName string = "Object"
-
-// ActivityStreamsOfferName is the string literal of the name for the Offer type in the ActivityStreams vocabulary.
-var ActivityStreamsOfferName string = "Offer"
-
-// ActivityStreamsOrderedCollectionName is the string literal of the name for the OrderedCollection type in the ActivityStreams vocabulary.
-var ActivityStreamsOrderedCollectionName string = "OrderedCollection"
-
-// ActivityStreamsOrderedCollectionPageName is the string literal of the name for the OrderedCollectionPage type in the ActivityStreams vocabulary.
-var ActivityStreamsOrderedCollectionPageName string = "OrderedCollectionPage"
-
-// ActivityStreamsOrganizationName is the string literal of the name for the Organization type in the ActivityStreams vocabulary.
-var ActivityStreamsOrganizationName string = "Organization"
-
-// ActivityStreamsPageName is the string literal of the name for the Page type in the ActivityStreams vocabulary.
-var ActivityStreamsPageName string = "Page"
-
-// ActivityStreamsPersonName is the string literal of the name for the Person type in the ActivityStreams vocabulary.
-var ActivityStreamsPersonName string = "Person"
-
-// ActivityStreamsPlaceName is the string literal of the name for the Place type in the ActivityStreams vocabulary.
-var ActivityStreamsPlaceName string = "Place"
-
-// ActivityStreamsProfileName is the string literal of the name for the Profile type in the ActivityStreams vocabulary.
-var ActivityStreamsProfileName string = "Profile"
-
-// W3IDSecurityV1PublicKeyName is the string literal of the name for the PublicKey type in the W3IDSecurityV1 vocabulary.
-var W3IDSecurityV1PublicKeyName string = "PublicKey"
-
-// ForgeFedPushName is the string literal of the name for the Push type in the ForgeFed vocabulary.
-var ForgeFedPushName string = "Push"
-
-// ActivityStreamsQuestionName is the string literal of the name for the Question type in the ActivityStreams vocabulary.
-var ActivityStreamsQuestionName string = "Question"
-
-// ActivityStreamsReadName is the string literal of the name for the Read type in the ActivityStreams vocabulary.
-var ActivityStreamsReadName string = "Read"
-
-// ActivityStreamsRejectName is the string literal of the name for the Reject type in the ActivityStreams vocabulary.
-var ActivityStreamsRejectName string = "Reject"
-
-// ActivityStreamsRelationshipName is the string literal of the name for the Relationship type in the ActivityStreams vocabulary.
-var ActivityStreamsRelationshipName string = "Relationship"
-
-// ActivityStreamsRemoveName is the string literal of the name for the Remove type in the ActivityStreams vocabulary.
-var ActivityStreamsRemoveName string = "Remove"
-
-// ForgeFedRepositoryName is the string literal of the name for the Repository type in the ForgeFed vocabulary.
-var ForgeFedRepositoryName string = "Repository"
-
-// ActivityStreamsServiceName is the string literal of the name for the Service type in the ActivityStreams vocabulary.
-var ActivityStreamsServiceName string = "Service"
-
-// ActivityStreamsTentativeAcceptName is the string literal of the name for the TentativeAccept type in the ActivityStreams vocabulary.
-var ActivityStreamsTentativeAcceptName string = "TentativeAccept"
-
-// ActivityStreamsTentativeRejectName is the string literal of the name for the TentativeReject type in the ActivityStreams vocabulary.
-var ActivityStreamsTentativeRejectName string = "TentativeReject"
-
-// ForgeFedTicketName is the string literal of the name for the Ticket type in the ForgeFed vocabulary.
-var ForgeFedTicketName string = "Ticket"
-
-// ForgeFedTicketDependencyName is the string literal of the name for the TicketDependency type in the ForgeFed vocabulary.
-var ForgeFedTicketDependencyName string = "TicketDependency"
-
-// ActivityStreamsTombstoneName is the string literal of the name for the Tombstone type in the ActivityStreams vocabulary.
-var ActivityStreamsTombstoneName string = "Tombstone"
-
-// ActivityStreamsTravelName is the string literal of the name for the Travel type in the ActivityStreams vocabulary.
-var ActivityStreamsTravelName string = "Travel"
-
-// ActivityStreamsUndoName is the string literal of the name for the Undo type in the ActivityStreams vocabulary.
-var ActivityStreamsUndoName string = "Undo"
-
-// ActivityStreamsUpdateName is the string literal of the name for the Update type in the ActivityStreams vocabulary.
-var ActivityStreamsUpdateName string = "Update"
-
-// ActivityStreamsVideoName is the string literal of the name for the Video type in the ActivityStreams vocabulary.
-var ActivityStreamsVideoName string = "Video"
-
-// ActivityStreamsViewName is the string literal of the name for the View type in the ActivityStreams vocabulary.
-var ActivityStreamsViewName string = "View"
-
-// ActivityStreamsAccuracyPropertyName is the string literal of the name for the accuracy property in the ActivityStreams vocabulary.
-var ActivityStreamsAccuracyPropertyName string = "accuracy"
-
-// ActivityStreamsActorPropertyName is the string literal of the name for the actor property in the ActivityStreams vocabulary.
-var ActivityStreamsActorPropertyName string = "actor"
-
-// ActivityStreamsAltitudePropertyName is the string literal of the name for the altitude property in the ActivityStreams vocabulary.
-var ActivityStreamsAltitudePropertyName string = "altitude"
-
-// ActivityStreamsAnyOfPropertyName is the string literal of the name for the anyOf property in the ActivityStreams vocabulary.
-var ActivityStreamsAnyOfPropertyName string = "anyOf"
-
-// ForgeFedAssignedToPropertyName is the string literal of the name for the assignedTo property in the ForgeFed vocabulary.
-var ForgeFedAssignedToPropertyName string = "assignedTo"
-
-// ActivityStreamsAttachmentPropertyName is the string literal of the name for the attachment property in the ActivityStreams vocabulary.
-var ActivityStreamsAttachmentPropertyName string = "attachment"
-
-// ActivityStreamsAttributedToPropertyName is the string literal of the name for the attributedTo property in the ActivityStreams vocabulary.
-var ActivityStreamsAttributedToPropertyName string = "attributedTo"
-
-// ActivityStreamsAudiencePropertyName is the string literal of the name for the audience property in the ActivityStreams vocabulary.
-var ActivityStreamsAudiencePropertyName string = "audience"
-
-// ActivityStreamsBccPropertyName is the string literal of the name for the bcc property in the ActivityStreams vocabulary.
-var ActivityStreamsBccPropertyName string = "bcc"
-
-// TootBlurhashPropertyName is the string literal of the name for the blurhash property in the Toot vocabulary.
-var TootBlurhashPropertyName string = "blurhash"
-
-// ActivityStreamsBtoPropertyName is the string literal of the name for the bto property in the ActivityStreams vocabulary.
-var ActivityStreamsBtoPropertyName string = "bto"
-
-// ActivityStreamsCcPropertyName is the string literal of the name for the cc property in the ActivityStreams vocabulary.
-var ActivityStreamsCcPropertyName string = "cc"
-
-// ActivityStreamsClosedPropertyName is the string literal of the name for the closed property in the ActivityStreams vocabulary.
-var ActivityStreamsClosedPropertyName string = "closed"
-
-// ForgeFedCommittedPropertyName is the string literal of the name for the committed property in the ForgeFed vocabulary.
-var ForgeFedCommittedPropertyName string = "committed"
-
-// ForgeFedCommittedByPropertyName is the string literal of the name for the committedBy property in the ForgeFed vocabulary.
-var ForgeFedCommittedByPropertyName string = "committedBy"
-
-// ActivityStreamsContentPropertyName is the string literal of the name for the content property in the ActivityStreams vocabulary.
-var ActivityStreamsContentPropertyName string = "content"
-
-// ActivityStreamsContentPropertyMapName is the string literal of the name for the content property in the ActivityStreams vocabulary when it is a natural language map.
-var ActivityStreamsContentPropertyMapName string = "contentMap"
-
-// ActivityStreamsContextPropertyName is the string literal of the name for the context property in the ActivityStreams vocabulary.
-var ActivityStreamsContextPropertyName string = "context"
-
-// ActivityStreamsCurrentPropertyName is the string literal of the name for the current property in the ActivityStreams vocabulary.
-var ActivityStreamsCurrentPropertyName string = "current"
-
-// ActivityStreamsDeletedPropertyName is the string literal of the name for the deleted property in the ActivityStreams vocabulary.
-var ActivityStreamsDeletedPropertyName string = "deleted"
-
-// ForgeFedDependantsPropertyName is the string literal of the name for the dependants property in the ForgeFed vocabulary.
-var ForgeFedDependantsPropertyName string = "dependants"
-
-// ForgeFedDependedByPropertyName is the string literal of the name for the dependedBy property in the ForgeFed vocabulary.
-var ForgeFedDependedByPropertyName string = "dependedBy"
-
-// ForgeFedDependenciesPropertyName is the string literal of the name for the dependencies property in the ForgeFed vocabulary.
-var ForgeFedDependenciesPropertyName string = "dependencies"
-
-// ForgeFedDependsOnPropertyName is the string literal of the name for the dependsOn property in the ForgeFed vocabulary.
-var ForgeFedDependsOnPropertyName string = "dependsOn"
-
-// ActivityStreamsDescribesPropertyName is the string literal of the name for the describes property in the ActivityStreams vocabulary.
-var ActivityStreamsDescribesPropertyName string = "describes"
-
-// ForgeFedDescriptionPropertyName is the string literal of the name for the description property in the ForgeFed vocabulary.
-var ForgeFedDescriptionPropertyName string = "description"
-
-// TootDiscoverablePropertyName is the string literal of the name for the discoverable property in the Toot vocabulary.
-var TootDiscoverablePropertyName string = "discoverable"
-
-// ActivityStreamsDurationPropertyName is the string literal of the name for the duration property in the ActivityStreams vocabulary.
-var ActivityStreamsDurationPropertyName string = "duration"
-
-// ForgeFedEarlyItemsPropertyName is the string literal of the name for the earlyItems property in the ForgeFed vocabulary.
-var ForgeFedEarlyItemsPropertyName string = "earlyItems"
-
-// ActivityStreamsEndTimePropertyName is the string literal of the name for the endTime property in the ActivityStreams vocabulary.
-var ActivityStreamsEndTimePropertyName string = "endTime"
-
-// TootFeaturedPropertyName is the string literal of the name for the featured property in the Toot vocabulary.
-var TootFeaturedPropertyName string = "featured"
-
-// ForgeFedFilesAddedPropertyName is the string literal of the name for the filesAdded property in the ForgeFed vocabulary.
-var ForgeFedFilesAddedPropertyName string = "filesAdded"
-
-// ForgeFedFilesModifiedPropertyName is the string literal of the name for the filesModified property in the ForgeFed vocabulary.
-var ForgeFedFilesModifiedPropertyName string = "filesModified"
-
-// ForgeFedFilesRemovedPropertyName is the string literal of the name for the filesRemoved property in the ForgeFed vocabulary.
-var ForgeFedFilesRemovedPropertyName string = "filesRemoved"
-
-// ActivityStreamsFirstPropertyName is the string literal of the name for the first property in the ActivityStreams vocabulary.
-var ActivityStreamsFirstPropertyName string = "first"
-
-// ActivityStreamsFollowersPropertyName is the string literal of the name for the followers property in the ActivityStreams vocabulary.
-var ActivityStreamsFollowersPropertyName string = "followers"
-
-// ActivityStreamsFollowingPropertyName is the string literal of the name for the following property in the ActivityStreams vocabulary.
-var ActivityStreamsFollowingPropertyName string = "following"
-
-// ForgeFedForksPropertyName is the string literal of the name for the forks property in the ForgeFed vocabulary.
-var ForgeFedForksPropertyName string = "forks"
-
-// ActivityStreamsFormerTypePropertyName is the string literal of the name for the formerType property in the ActivityStreams vocabulary.
-var ActivityStreamsFormerTypePropertyName string = "formerType"
-
-// ActivityStreamsGeneratorPropertyName is the string literal of the name for the generator property in the ActivityStreams vocabulary.
-var ActivityStreamsGeneratorPropertyName string = "generator"
-
-// ForgeFedHashPropertyName is the string literal of the name for the hash property in the ForgeFed vocabulary.
-var ForgeFedHashPropertyName string = "hash"
-
-// ActivityStreamsHeightPropertyName is the string literal of the name for the height property in the ActivityStreams vocabulary.
-var ActivityStreamsHeightPropertyName string = "height"
-
-// ActivityStreamsHrefPropertyName is the string literal of the name for the href property in the ActivityStreams vocabulary.
-var ActivityStreamsHrefPropertyName string = "href"
-
-// ActivityStreamsHreflangPropertyName is the string literal of the name for the hreflang property in the ActivityStreams vocabulary.
-var ActivityStreamsHreflangPropertyName string = "hreflang"
-
-// ActivityStreamsIconPropertyName is the string literal of the name for the icon property in the ActivityStreams vocabulary.
-var ActivityStreamsIconPropertyName string = "icon"
-
-// ActivityStreamsImagePropertyName is the string literal of the name for the image property in the ActivityStreams vocabulary.
-var ActivityStreamsImagePropertyName string = "image"
-
-// ActivityStreamsInReplyToPropertyName is the string literal of the name for the inReplyTo property in the ActivityStreams vocabulary.
-var ActivityStreamsInReplyToPropertyName string = "inReplyTo"
-
-// ActivityStreamsInboxPropertyName is the string literal of the name for the inbox property in the ActivityStreams vocabulary.
-var ActivityStreamsInboxPropertyName string = "inbox"
-
-// ActivityStreamsInstrumentPropertyName is the string literal of the name for the instrument property in the ActivityStreams vocabulary.
-var ActivityStreamsInstrumentPropertyName string = "instrument"
-
-// ForgeFedIsResolvedPropertyName is the string literal of the name for the isResolved property in the ForgeFed vocabulary.
-var ForgeFedIsResolvedPropertyName string = "isResolved"
-
-// ActivityStreamsItemsPropertyName is the string literal of the name for the items property in the ActivityStreams vocabulary.
-var ActivityStreamsItemsPropertyName string = "items"
-
-// ActivityStreamsLastPropertyName is the string literal of the name for the last property in the ActivityStreams vocabulary.
-var ActivityStreamsLastPropertyName string = "last"
-
-// ActivityStreamsLatitudePropertyName is the string literal of the name for the latitude property in the ActivityStreams vocabulary.
-var ActivityStreamsLatitudePropertyName string = "latitude"
-
-// ActivityStreamsLikedPropertyName is the string literal of the name for the liked property in the ActivityStreams vocabulary.
-var ActivityStreamsLikedPropertyName string = "liked"
-
-// ActivityStreamsLikesPropertyName is the string literal of the name for the likes property in the ActivityStreams vocabulary.
-var ActivityStreamsLikesPropertyName string = "likes"
-
-// ActivityStreamsLocationPropertyName is the string literal of the name for the location property in the ActivityStreams vocabulary.
-var ActivityStreamsLocationPropertyName string = "location"
-
-// ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary.
-var ActivityStreamsLongitudePropertyName string = "longitude"
-
-// ActivityStreamsManuallyApprovesFollowersPropertyName is the string literal of the name for the manuallyApprovesFollowers property in the ActivityStreams vocabulary.
-var ActivityStreamsManuallyApprovesFollowersPropertyName string = "manuallyApprovesFollowers"
-
-// ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary.
-var ActivityStreamsMediaTypePropertyName string = "mediaType"
-
-// ActivityStreamsNamePropertyName is the string literal of the name for the name property in the ActivityStreams vocabulary.
-var ActivityStreamsNamePropertyName string = "name"
-
-// ActivityStreamsNamePropertyMapName is the string literal of the name for the name property in the ActivityStreams vocabulary when it is a natural language map.
-var ActivityStreamsNamePropertyMapName string = "nameMap"
-
-// ActivityStreamsNextPropertyName is the string literal of the name for the next property in the ActivityStreams vocabulary.
-var ActivityStreamsNextPropertyName string = "next"
-
-// ActivityStreamsObjectPropertyName is the string literal of the name for the object property in the ActivityStreams vocabulary.
-var ActivityStreamsObjectPropertyName string = "object"
-
-// ActivityStreamsOneOfPropertyName is the string literal of the name for the oneOf property in the ActivityStreams vocabulary.
-var ActivityStreamsOneOfPropertyName string = "oneOf"
-
-// ActivityStreamsOrderedItemsPropertyName is the string literal of the name for the orderedItems property in the ActivityStreams vocabulary.
-var ActivityStreamsOrderedItemsPropertyName string = "orderedItems"
-
-// ActivityStreamsOriginPropertyName is the string literal of the name for the origin property in the ActivityStreams vocabulary.
-var ActivityStreamsOriginPropertyName string = "origin"
-
-// ActivityStreamsOutboxPropertyName is the string literal of the name for the outbox property in the ActivityStreams vocabulary.
-var ActivityStreamsOutboxPropertyName string = "outbox"
-
-// W3IDSecurityV1OwnerPropertyName is the string literal of the name for the owner property in the W3IDSecurityV1 vocabulary.
-var W3IDSecurityV1OwnerPropertyName string = "owner"
-
-// ActivityStreamsPartOfPropertyName is the string literal of the name for the partOf property in the ActivityStreams vocabulary.
-var ActivityStreamsPartOfPropertyName string = "partOf"
-
-// ActivityStreamsPreferredUsernamePropertyName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary.
-var ActivityStreamsPreferredUsernamePropertyName string = "preferredUsername"
-
-// ActivityStreamsPreferredUsernamePropertyMapName is the string literal of the name for the preferredUsername property in the ActivityStreams vocabulary when it is a natural language map.
-var ActivityStreamsPreferredUsernamePropertyMapName string = "preferredUsernameMap"
-
-// ActivityStreamsPrevPropertyName is the string literal of the name for the prev property in the ActivityStreams vocabulary.
-var ActivityStreamsPrevPropertyName string = "prev"
-
-// ActivityStreamsPreviewPropertyName is the string literal of the name for the preview property in the ActivityStreams vocabulary.
-var ActivityStreamsPreviewPropertyName string = "preview"
-
-// W3IDSecurityV1PublicKeyPropertyName is the string literal of the name for the publicKey property in the W3IDSecurityV1 vocabulary.
-var W3IDSecurityV1PublicKeyPropertyName string = "publicKey"
-
-// W3IDSecurityV1PublicKeyPemPropertyName is the string literal of the name for the publicKeyPem property in the W3IDSecurityV1 vocabulary.
-var W3IDSecurityV1PublicKeyPemPropertyName string = "publicKeyPem"
-
-// ActivityStreamsPublishedPropertyName is the string literal of the name for the published property in the ActivityStreams vocabulary.
-var ActivityStreamsPublishedPropertyName string = "published"
-
-// ActivityStreamsRadiusPropertyName is the string literal of the name for the radius property in the ActivityStreams vocabulary.
-var ActivityStreamsRadiusPropertyName string = "radius"
-
-// ForgeFedRefPropertyName is the string literal of the name for the ref property in the ForgeFed vocabulary.
-var ForgeFedRefPropertyName string = "ref"
-
-// ActivityStreamsRelPropertyName is the string literal of the name for the rel property in the ActivityStreams vocabulary.
-var ActivityStreamsRelPropertyName string = "rel"
-
-// ActivityStreamsRelationshipPropertyName is the string literal of the name for the relationship property in the ActivityStreams vocabulary.
-var ActivityStreamsRelationshipPropertyName string = "relationship"
-
-// ActivityStreamsRepliesPropertyName is the string literal of the name for the replies property in the ActivityStreams vocabulary.
-var ActivityStreamsRepliesPropertyName string = "replies"
-
-// ActivityStreamsResultPropertyName is the string literal of the name for the result property in the ActivityStreams vocabulary.
-var ActivityStreamsResultPropertyName string = "result"
-
-// ActivityStreamsSharesPropertyName is the string literal of the name for the shares property in the ActivityStreams vocabulary.
-var ActivityStreamsSharesPropertyName string = "shares"
-
-// TootSignatureAlgorithmPropertyName is the string literal of the name for the signatureAlgorithm property in the Toot vocabulary.
-var TootSignatureAlgorithmPropertyName string = "signatureAlgorithm"
-
-// TootSignatureValuePropertyName is the string literal of the name for the signatureValue property in the Toot vocabulary.
-var TootSignatureValuePropertyName string = "signatureValue"
-
-// ActivityStreamsSourcePropertyName is the string literal of the name for the source property in the ActivityStreams vocabulary.
-var ActivityStreamsSourcePropertyName string = "source"
-
-// ActivityStreamsStartIndexPropertyName is the string literal of the name for the startIndex property in the ActivityStreams vocabulary.
-var ActivityStreamsStartIndexPropertyName string = "startIndex"
-
-// ActivityStreamsStartTimePropertyName is the string literal of the name for the startTime property in the ActivityStreams vocabulary.
-var ActivityStreamsStartTimePropertyName string = "startTime"
-
-// ActivityStreamsStreamsPropertyName is the string literal of the name for the streams property in the ActivityStreams vocabulary.
-var ActivityStreamsStreamsPropertyName string = "streams"
-
-// ActivityStreamsSubjectPropertyName is the string literal of the name for the subject property in the ActivityStreams vocabulary.
-var ActivityStreamsSubjectPropertyName string = "subject"
-
-// ActivityStreamsSummaryPropertyName is the string literal of the name for the summary property in the ActivityStreams vocabulary.
-var ActivityStreamsSummaryPropertyName string = "summary"
-
-// ActivityStreamsSummaryPropertyMapName is the string literal of the name for the summary property in the ActivityStreams vocabulary when it is a natural language map.
-var ActivityStreamsSummaryPropertyMapName string = "summaryMap"
-
-// ActivityStreamsTagPropertyName is the string literal of the name for the tag property in the ActivityStreams vocabulary.
-var ActivityStreamsTagPropertyName string = "tag"
-
-// ActivityStreamsTargetPropertyName is the string literal of the name for the target property in the ActivityStreams vocabulary.
-var ActivityStreamsTargetPropertyName string = "target"
-
-// ForgeFedTeamPropertyName is the string literal of the name for the team property in the ForgeFed vocabulary.
-var ForgeFedTeamPropertyName string = "team"
-
-// ForgeFedTicketsTrackedByPropertyName is the string literal of the name for the ticketsTrackedBy property in the ForgeFed vocabulary.
-var ForgeFedTicketsTrackedByPropertyName string = "ticketsTrackedBy"
-
-// ActivityStreamsToPropertyName is the string literal of the name for the to property in the ActivityStreams vocabulary.
-var ActivityStreamsToPropertyName string = "to"
-
-// ActivityStreamsTotalItemsPropertyName is the string literal of the name for the totalItems property in the ActivityStreams vocabulary.
-var ActivityStreamsTotalItemsPropertyName string = "totalItems"
-
-// ForgeFedTracksTicketsForPropertyName is the string literal of the name for the tracksTicketsFor property in the ForgeFed vocabulary.
-var ForgeFedTracksTicketsForPropertyName string = "tracksTicketsFor"
-
-// ActivityStreamsUnitsPropertyName is the string literal of the name for the units property in the ActivityStreams vocabulary.
-var ActivityStreamsUnitsPropertyName string = "units"
-
-// ActivityStreamsUpdatedPropertyName is the string literal of the name for the updated property in the ActivityStreams vocabulary.
-var ActivityStreamsUpdatedPropertyName string = "updated"
-
-// ActivityStreamsUrlPropertyName is the string literal of the name for the url property in the ActivityStreams vocabulary.
-var ActivityStreamsUrlPropertyName string = "url"
-
-// TootVotersCountPropertyName is the string literal of the name for the votersCount property in the Toot vocabulary.
-var TootVotersCountPropertyName string = "votersCount"
-
-// ActivityStreamsWidthPropertyName is the string literal of the name for the width property in the ActivityStreams vocabulary.
-var ActivityStreamsWidthPropertyName string = "width"
diff --git a/vendor/github.com/go-fed/activity/streams/gen_init.go b/vendor/github.com/go-fed/activity/streams/gen_init.go
deleted file mode 100644
index 47f0db309..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_init.go
+++ /dev/null
@@ -1,410 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- propertyaccuracy "github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy"
- propertyactor "github.com/go-fed/activity/streams/impl/activitystreams/property_actor"
- propertyaltitude "github.com/go-fed/activity/streams/impl/activitystreams/property_altitude"
- propertyanyof "github.com/go-fed/activity/streams/impl/activitystreams/property_anyof"
- propertyattachment "github.com/go-fed/activity/streams/impl/activitystreams/property_attachment"
- propertyattributedto "github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto"
- propertyaudience "github.com/go-fed/activity/streams/impl/activitystreams/property_audience"
- propertybcc "github.com/go-fed/activity/streams/impl/activitystreams/property_bcc"
- propertybto "github.com/go-fed/activity/streams/impl/activitystreams/property_bto"
- propertycc "github.com/go-fed/activity/streams/impl/activitystreams/property_cc"
- propertyclosed "github.com/go-fed/activity/streams/impl/activitystreams/property_closed"
- propertycontent "github.com/go-fed/activity/streams/impl/activitystreams/property_content"
- propertycontext "github.com/go-fed/activity/streams/impl/activitystreams/property_context"
- propertycurrent "github.com/go-fed/activity/streams/impl/activitystreams/property_current"
- propertydeleted "github.com/go-fed/activity/streams/impl/activitystreams/property_deleted"
- propertydescribes "github.com/go-fed/activity/streams/impl/activitystreams/property_describes"
- propertyduration "github.com/go-fed/activity/streams/impl/activitystreams/property_duration"
- propertyendtime "github.com/go-fed/activity/streams/impl/activitystreams/property_endtime"
- propertyfirst "github.com/go-fed/activity/streams/impl/activitystreams/property_first"
- propertyfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_followers"
- propertyfollowing "github.com/go-fed/activity/streams/impl/activitystreams/property_following"
- propertyformertype "github.com/go-fed/activity/streams/impl/activitystreams/property_formertype"
- propertygenerator "github.com/go-fed/activity/streams/impl/activitystreams/property_generator"
- propertyheight "github.com/go-fed/activity/streams/impl/activitystreams/property_height"
- propertyhref "github.com/go-fed/activity/streams/impl/activitystreams/property_href"
- propertyhreflang "github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang"
- propertyicon "github.com/go-fed/activity/streams/impl/activitystreams/property_icon"
- propertyimage "github.com/go-fed/activity/streams/impl/activitystreams/property_image"
- propertyinbox "github.com/go-fed/activity/streams/impl/activitystreams/property_inbox"
- propertyinreplyto "github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto"
- propertyinstrument "github.com/go-fed/activity/streams/impl/activitystreams/property_instrument"
- propertyitems "github.com/go-fed/activity/streams/impl/activitystreams/property_items"
- propertylast "github.com/go-fed/activity/streams/impl/activitystreams/property_last"
- propertylatitude "github.com/go-fed/activity/streams/impl/activitystreams/property_latitude"
- propertyliked "github.com/go-fed/activity/streams/impl/activitystreams/property_liked"
- propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes"
- propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location"
- propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude"
- propertymanuallyapprovesfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
- propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype"
- propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name"
- propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next"
- propertyobject "github.com/go-fed/activity/streams/impl/activitystreams/property_object"
- propertyoneof "github.com/go-fed/activity/streams/impl/activitystreams/property_oneof"
- propertyordereditems "github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems"
- propertyorigin "github.com/go-fed/activity/streams/impl/activitystreams/property_origin"
- propertyoutbox "github.com/go-fed/activity/streams/impl/activitystreams/property_outbox"
- propertypartof "github.com/go-fed/activity/streams/impl/activitystreams/property_partof"
- propertypreferredusername "github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername"
- propertyprev "github.com/go-fed/activity/streams/impl/activitystreams/property_prev"
- propertypreview "github.com/go-fed/activity/streams/impl/activitystreams/property_preview"
- propertypublished "github.com/go-fed/activity/streams/impl/activitystreams/property_published"
- propertyradius "github.com/go-fed/activity/streams/impl/activitystreams/property_radius"
- propertyrel "github.com/go-fed/activity/streams/impl/activitystreams/property_rel"
- propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship"
- propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies"
- propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result"
- propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares"
- propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source"
- propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex"
- propertystarttime "github.com/go-fed/activity/streams/impl/activitystreams/property_starttime"
- propertystreams "github.com/go-fed/activity/streams/impl/activitystreams/property_streams"
- propertysubject "github.com/go-fed/activity/streams/impl/activitystreams/property_subject"
- propertysummary "github.com/go-fed/activity/streams/impl/activitystreams/property_summary"
- propertytag "github.com/go-fed/activity/streams/impl/activitystreams/property_tag"
- propertytarget "github.com/go-fed/activity/streams/impl/activitystreams/property_target"
- propertyto "github.com/go-fed/activity/streams/impl/activitystreams/property_to"
- propertytotalitems "github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems"
- propertyunits "github.com/go-fed/activity/streams/impl/activitystreams/property_units"
- propertyupdated "github.com/go-fed/activity/streams/impl/activitystreams/property_updated"
- propertyurl "github.com/go-fed/activity/streams/impl/activitystreams/property_url"
- propertywidth "github.com/go-fed/activity/streams/impl/activitystreams/property_width"
- typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept"
- typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity"
- typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add"
- typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce"
- typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application"
- typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive"
- typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article"
- typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio"
- typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block"
- typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection"
- typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage"
- typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create"
- typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete"
- typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike"
- typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document"
- typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event"
- typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag"
- typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow"
- typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group"
- typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore"
- typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image"
- typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity"
- typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite"
- typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join"
- typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave"
- typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like"
- typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link"
- typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen"
- typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention"
- typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move"
- typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note"
- typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object"
- typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer"
- typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection"
- typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage"
- typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization"
- typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page"
- typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person"
- typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place"
- typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile"
- typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question"
- typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read"
- typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject"
- typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship"
- typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove"
- typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service"
- typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept"
- typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject"
- typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone"
- typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel"
- typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo"
- typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update"
- typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video"
- typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
- propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto"
- propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed"
- propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby"
- propertydependants "github.com/go-fed/activity/streams/impl/forgefed/property_dependants"
- propertydependedby "github.com/go-fed/activity/streams/impl/forgefed/property_dependedby"
- propertydependencies "github.com/go-fed/activity/streams/impl/forgefed/property_dependencies"
- propertydependson "github.com/go-fed/activity/streams/impl/forgefed/property_dependson"
- propertydescription "github.com/go-fed/activity/streams/impl/forgefed/property_description"
- propertyearlyitems "github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems"
- propertyfilesadded "github.com/go-fed/activity/streams/impl/forgefed/property_filesadded"
- propertyfilesmodified "github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified"
- propertyfilesremoved "github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved"
- propertyforks "github.com/go-fed/activity/streams/impl/forgefed/property_forks"
- propertyhash "github.com/go-fed/activity/streams/impl/forgefed/property_hash"
- propertyisresolved "github.com/go-fed/activity/streams/impl/forgefed/property_isresolved"
- propertyref "github.com/go-fed/activity/streams/impl/forgefed/property_ref"
- propertyteam "github.com/go-fed/activity/streams/impl/forgefed/property_team"
- propertyticketstrackedby "github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby"
- propertytracksticketsfor "github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor"
- typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
- typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
- typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
- typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
- typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
- typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
- propertyblurhash "github.com/go-fed/activity/streams/impl/toot/property_blurhash"
- propertydiscoverable "github.com/go-fed/activity/streams/impl/toot/property_discoverable"
- propertyfeatured "github.com/go-fed/activity/streams/impl/toot/property_featured"
- propertysignaturealgorithm "github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm"
- propertysignaturevalue "github.com/go-fed/activity/streams/impl/toot/property_signaturevalue"
- propertyvoterscount "github.com/go-fed/activity/streams/impl/toot/property_voterscount"
- typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji"
- typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof"
- propertyowner "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner"
- propertypublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey"
- propertypublickeypem "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem"
- typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey"
-)
-
-var mgr *Manager
-
-// init handles the 'magic' of creating a Manager and dependency-injecting it into
-// every other code-generated package. This gives the implementations access
-// to create any type needed to deserialize, without relying on the other
-// specific concrete implementations. In order to replace a go-fed created
-// type with your own, be sure to have the manager call your own
-// implementation's deserialize functions instead of the built-in type.
-// Finally, each implementation views the Manager as an interface with only a
-// subset of funcitons available. This means this Manager implements the union
-// of those interfaces.
-func init() {
- mgr = &Manager{}
- propertyaccuracy.SetManager(mgr)
- propertyactor.SetManager(mgr)
- propertyaltitude.SetManager(mgr)
- propertyanyof.SetManager(mgr)
- propertyattachment.SetManager(mgr)
- propertyattributedto.SetManager(mgr)
- propertyaudience.SetManager(mgr)
- propertybcc.SetManager(mgr)
- propertybto.SetManager(mgr)
- propertycc.SetManager(mgr)
- propertyclosed.SetManager(mgr)
- propertycontent.SetManager(mgr)
- propertycontext.SetManager(mgr)
- propertycurrent.SetManager(mgr)
- propertydeleted.SetManager(mgr)
- propertydescribes.SetManager(mgr)
- propertyduration.SetManager(mgr)
- propertyendtime.SetManager(mgr)
- propertyfirst.SetManager(mgr)
- propertyfollowers.SetManager(mgr)
- propertyfollowing.SetManager(mgr)
- propertyformertype.SetManager(mgr)
- propertygenerator.SetManager(mgr)
- propertyheight.SetManager(mgr)
- propertyhref.SetManager(mgr)
- propertyhreflang.SetManager(mgr)
- propertyicon.SetManager(mgr)
- propertyimage.SetManager(mgr)
- propertyinbox.SetManager(mgr)
- propertyinreplyto.SetManager(mgr)
- propertyinstrument.SetManager(mgr)
- propertyitems.SetManager(mgr)
- propertylast.SetManager(mgr)
- propertylatitude.SetManager(mgr)
- propertyliked.SetManager(mgr)
- propertylikes.SetManager(mgr)
- propertylocation.SetManager(mgr)
- propertylongitude.SetManager(mgr)
- propertymanuallyapprovesfollowers.SetManager(mgr)
- propertymediatype.SetManager(mgr)
- propertyname.SetManager(mgr)
- propertynext.SetManager(mgr)
- propertyobject.SetManager(mgr)
- propertyoneof.SetManager(mgr)
- propertyordereditems.SetManager(mgr)
- propertyorigin.SetManager(mgr)
- propertyoutbox.SetManager(mgr)
- propertypartof.SetManager(mgr)
- propertypreferredusername.SetManager(mgr)
- propertyprev.SetManager(mgr)
- propertypreview.SetManager(mgr)
- propertypublished.SetManager(mgr)
- propertyradius.SetManager(mgr)
- propertyrel.SetManager(mgr)
- propertyrelationship.SetManager(mgr)
- propertyreplies.SetManager(mgr)
- propertyresult.SetManager(mgr)
- propertyshares.SetManager(mgr)
- propertysource.SetManager(mgr)
- propertystartindex.SetManager(mgr)
- propertystarttime.SetManager(mgr)
- propertystreams.SetManager(mgr)
- propertysubject.SetManager(mgr)
- propertysummary.SetManager(mgr)
- propertytag.SetManager(mgr)
- propertytarget.SetManager(mgr)
- propertyto.SetManager(mgr)
- propertytotalitems.SetManager(mgr)
- propertyunits.SetManager(mgr)
- propertyupdated.SetManager(mgr)
- propertyurl.SetManager(mgr)
- propertywidth.SetManager(mgr)
- typeaccept.SetManager(mgr)
- typeactivity.SetManager(mgr)
- typeadd.SetManager(mgr)
- typeannounce.SetManager(mgr)
- typeapplication.SetManager(mgr)
- typearrive.SetManager(mgr)
- typearticle.SetManager(mgr)
- typeaudio.SetManager(mgr)
- typeblock.SetManager(mgr)
- typecollection.SetManager(mgr)
- typecollectionpage.SetManager(mgr)
- typecreate.SetManager(mgr)
- typedelete.SetManager(mgr)
- typedislike.SetManager(mgr)
- typedocument.SetManager(mgr)
- typeevent.SetManager(mgr)
- typeflag.SetManager(mgr)
- typefollow.SetManager(mgr)
- typegroup.SetManager(mgr)
- typeignore.SetManager(mgr)
- typeimage.SetManager(mgr)
- typeintransitiveactivity.SetManager(mgr)
- typeinvite.SetManager(mgr)
- typejoin.SetManager(mgr)
- typeleave.SetManager(mgr)
- typelike.SetManager(mgr)
- typelink.SetManager(mgr)
- typelisten.SetManager(mgr)
- typemention.SetManager(mgr)
- typemove.SetManager(mgr)
- typenote.SetManager(mgr)
- typeobject.SetManager(mgr)
- typeoffer.SetManager(mgr)
- typeorderedcollection.SetManager(mgr)
- typeorderedcollectionpage.SetManager(mgr)
- typeorganization.SetManager(mgr)
- typepage.SetManager(mgr)
- typeperson.SetManager(mgr)
- typeplace.SetManager(mgr)
- typeprofile.SetManager(mgr)
- typequestion.SetManager(mgr)
- typeread.SetManager(mgr)
- typereject.SetManager(mgr)
- typerelationship.SetManager(mgr)
- typeremove.SetManager(mgr)
- typeservice.SetManager(mgr)
- typetentativeaccept.SetManager(mgr)
- typetentativereject.SetManager(mgr)
- typetombstone.SetManager(mgr)
- typetravel.SetManager(mgr)
- typeundo.SetManager(mgr)
- typeupdate.SetManager(mgr)
- typevideo.SetManager(mgr)
- typeview.SetManager(mgr)
- propertyassignedto.SetManager(mgr)
- propertycommitted.SetManager(mgr)
- propertycommittedby.SetManager(mgr)
- propertydependants.SetManager(mgr)
- propertydependedby.SetManager(mgr)
- propertydependencies.SetManager(mgr)
- propertydependson.SetManager(mgr)
- propertydescription.SetManager(mgr)
- propertyearlyitems.SetManager(mgr)
- propertyfilesadded.SetManager(mgr)
- propertyfilesmodified.SetManager(mgr)
- propertyfilesremoved.SetManager(mgr)
- propertyforks.SetManager(mgr)
- propertyhash.SetManager(mgr)
- propertyisresolved.SetManager(mgr)
- propertyref.SetManager(mgr)
- propertyteam.SetManager(mgr)
- propertyticketstrackedby.SetManager(mgr)
- propertytracksticketsfor.SetManager(mgr)
- typebranch.SetManager(mgr)
- typecommit.SetManager(mgr)
- typepush.SetManager(mgr)
- typerepository.SetManager(mgr)
- typeticket.SetManager(mgr)
- typeticketdependency.SetManager(mgr)
- propertyblurhash.SetManager(mgr)
- propertydiscoverable.SetManager(mgr)
- propertyfeatured.SetManager(mgr)
- propertysignaturealgorithm.SetManager(mgr)
- propertysignaturevalue.SetManager(mgr)
- propertyvoterscount.SetManager(mgr)
- typeemoji.SetManager(mgr)
- typeidentityproof.SetManager(mgr)
- propertyowner.SetManager(mgr)
- propertypublickey.SetManager(mgr)
- propertypublickeypem.SetManager(mgr)
- typepublickey.SetManager(mgr)
- typeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeadd.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeapplication.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typearrive.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typearticle.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeaudio.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeblock.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typecollection.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typecollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typecreate.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typedelete.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typedislike.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typedocument.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeevent.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeflag.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typefollow.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typegroup.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeignore.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeimage.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeintransitiveactivity.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeinvite.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typejoin.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeleave.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typelike.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typelink.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typelisten.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typemention.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typemove.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typenote.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeobject.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeoffer.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeorderedcollection.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeorderedcollectionpage.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeorganization.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typepage.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeperson.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeplace.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeprofile.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typequestion.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeread.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typereject.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typerelationship.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeremove.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeservice.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typetentativeaccept.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typetentativereject.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typetombstone.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typetravel.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeundo.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typebranch.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typecommit.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typepush.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typerepository.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeticket.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeticketdependency.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty)
- typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_json_resolver.go b/vendor/github.com/go-fed/activity/streams/gen_json_resolver.go
deleted file mode 100644
index 0c6773d52..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_json_resolver.go
+++ /dev/null
@@ -1,978 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- "context"
- "errors"
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "strings"
-)
-
-// JSONResolver resolves a JSON-deserialized map into its concrete ActivityStreams
-// type
-type JSONResolver struct {
- callbacks []interface{}
-}
-
-// NewJSONResolver creates a new Resolver that takes a JSON-deserialized generic
-// map and determines the correct concrete Go type. The callback function is
-// guaranteed to receive a value whose underlying ActivityStreams type matches
-// the concrete interface name in its signature. The callback functions must
-// be of the form:
-//
-// func(context.Context, ) error
-//
-// where TypeInterface is the code-generated interface for an ActivityStream
-// type. An error is returned if a callback function does not match this
-// signature.
-func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
- for _, cb := range callbacks {
- // Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail.
- switch cb.(type) {
- case func(context.Context, vocab.ActivityStreamsAccept) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsActivity) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsAdd) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsAnnounce) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsApplication) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsArrive) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsArticle) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsAudio) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsBlock) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedBranch) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsCollection) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsCollectionPage) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedCommit) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsCreate) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsDelete) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsDislike) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsDocument) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.TootEmoji) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsEvent) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsFlag) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsFollow) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsGroup) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.TootIdentityProof) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsIgnore) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsImage) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsInvite) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsJoin) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsLeave) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsLike) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsLink) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsListen) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsMention) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsMove) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsNote) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsObject) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOffer) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOrderedCollection) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOrganization) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsPage) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsPerson) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsPlace) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsProfile) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.W3IDSecurityV1PublicKey) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedPush) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsQuestion) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsRead) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsReject) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsRelationship) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsRemove) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedRepository) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsService) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTentativeAccept) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTentativeReject) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedTicket) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedTicketDependency) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTombstone) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTravel) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsUndo) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsUpdate) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsVideo) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsView) error:
- // Do nothing, this callback has a correct signature.
- default:
- return nil, errors.New("a callback function is of the wrong signature and would never be called")
- }
- }
- return &JSONResolver{callbacks: callbacks}, nil
-}
-
-// toAliasMap converts a JSONLD context into a map of vocabulary name to alias.
-func toAliasMap(i interface{}) (m map[string]string) {
- m = make(map[string]string)
- toHttpHttpsFn := func(s string) (ok bool, http, https string) {
- if strings.HasPrefix(s, "http://") {
- ok = true
- http = s
- https = "https" + strings.TrimPrefix(s, "http")
- } else if strings.HasPrefix(s, "https://") {
- ok = true
- https = s
- http = "http" + strings.TrimPrefix(s, "https")
- }
- return
- }
- switch v := i.(type) {
- case string:
- // Single entry, no alias.
- if ok, http, https := toHttpHttpsFn(v); ok {
- m[http] = ""
- m[https] = ""
- } else {
- m[v] = ""
- }
- case []interface{}:
- // Recursively apply.
- for _, elem := range v {
- r := toAliasMap(elem)
- for k, val := range r {
- m[k] = val
- }
- }
- case map[string]interface{}:
- // Map any aliases.
- for k, val := range v {
- // Only handle string aliases.
- switch conc := val.(type) {
- case string:
- m[k] = conc
- }
- }
- }
- return
-}
-
-// Resolve determines the ActivityStreams type of the payload, then applies the
-// first callback function whose signature accepts the ActivityStreams value's
-// type. This strictly assures that the callback function will only be passed
-// ActivityStream objects whose type matches its interface. Returns an error
-// if the ActivityStreams type does not match callbackers or is not a type
-// handled by the generated code. If multiple types are present, it will check
-// each one in order and apply only the first one. It returns an unhandled
-// error for a multi-typed object if none of the types were able to be handled.
-func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) error {
- typeValue, ok := m["type"]
- if !ok {
- return fmt.Errorf("cannot determine ActivityStreams type: 'type' property is missing")
- }
- rawContext, ok := m["@context"]
- if !ok {
- return fmt.Errorf("cannot determine ActivityStreams type: '@context' is missing")
- }
- aliasMap := toAliasMap(rawContext)
- // Begin: Private lambda to handle a single string "type" value. Makes code generation easier.
- handleFn := func(typeString string) error {
- ActivityStreamsAlias, ok := aliasMap["https://www.w3.org/ns/activitystreams"]
- if !ok {
- ActivityStreamsAlias = aliasMap["http://www.w3.org/ns/activitystreams"]
- }
- if len(ActivityStreamsAlias) > 0 {
- ActivityStreamsAlias += ":"
- }
- ForgeFedAlias, ok := aliasMap["https://forgefed.peers.community/ns"]
- if !ok {
- ForgeFedAlias = aliasMap["http://forgefed.peers.community/ns"]
- }
- if len(ForgeFedAlias) > 0 {
- ForgeFedAlias += ":"
- }
- TootAlias, ok := aliasMap["https://joinmastodon.org/ns"]
- if !ok {
- TootAlias = aliasMap["http://joinmastodon.org/ns"]
- }
- if len(TootAlias) > 0 {
- TootAlias += ":"
- }
- W3IDSecurityV1Alias, ok := aliasMap["https://w3id.org/security/v1"]
- if !ok {
- W3IDSecurityV1Alias = aliasMap["http://w3id.org/security/v1"]
- }
- if len(W3IDSecurityV1Alias) > 0 {
- W3IDSecurityV1Alias += ":"
- }
-
- if typeString == ActivityStreamsAlias+"Accept" {
- v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAccept) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Activity" {
- v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsActivity) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Add" {
- v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAdd) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Announce" {
- v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Application" {
- v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Arrive" {
- v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArrive) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Article" {
- v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArticle) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Audio" {
- v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Block" {
- v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsBlock) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ForgeFedAlias+"Branch" {
- v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedBranch) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Collection" {
- v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"CollectionPage" {
- v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollectionPage) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ForgeFedAlias+"Commit" {
- v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedCommit) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Create" {
- v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Delete" {
- v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDelete) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Dislike" {
- v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDislike) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Document" {
- v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDocument) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == TootAlias+"Emoji" {
- v, err := mgr.DeserializeEmojiToot()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.TootEmoji) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Event" {
- v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEvent) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Flag" {
- v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFlag) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Follow" {
- v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFollow) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Group" {
- v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsGroup) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == TootAlias+"IdentityProof" {
- v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.TootIdentityProof) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Ignore" {
- v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIgnore) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Image" {
- v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsImage) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"IntransitiveActivity" {
- v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Invite" {
- v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsInvite) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Join" {
- v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsJoin) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Leave" {
- v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLeave) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Like" {
- v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Link" {
- v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Listen" {
- v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsListen) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Mention" {
- v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMention) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Move" {
- v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMove) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Note" {
- v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsNote) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Object" {
- v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsObject) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Offer" {
- v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOffer) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"OrderedCollection" {
- v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollection) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"OrderedCollectionPage" {
- v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Organization" {
- v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrganization) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Page" {
- v, err := mgr.DeserializePageActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPage) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Person" {
- v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPerson) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Place" {
- v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPlace) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Profile" {
- v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsProfile) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == W3IDSecurityV1Alias+"PublicKey" {
- v, err := mgr.DeserializePublicKeyW3IDSecurityV1()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.W3IDSecurityV1PublicKey) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ForgeFedAlias+"Push" {
- v, err := mgr.DeserializePushForgeFed()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedPush) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Question" {
- v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Read" {
- v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRead) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Reject" {
- v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsReject) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Relationship" {
- v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRelationship) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Remove" {
- v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRemove) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ForgeFedAlias+"Repository" {
- v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedRepository) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Service" {
- v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"TentativeAccept" {
- v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeAccept) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"TentativeReject" {
- v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeReject) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ForgeFedAlias+"Ticket" {
- v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedTicket) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ForgeFedAlias+"TicketDependency" {
- v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedTicketDependency) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Tombstone" {
- v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Travel" {
- v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Undo" {
- v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUndo) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Update" {
- v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUpdate) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"Video" {
- v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsVideo) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else if typeString == ActivityStreamsAlias+"View" {
- v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap)
- if err != nil {
- return err
- }
- for _, i := range this.callbacks {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsView) error); ok {
- return fn(ctx, v)
- }
- }
- return ErrNoCallbackMatch
- } else {
- return ErrUnhandledType
- }
- }
- // End: Private lambda
- if typeStr, ok := typeValue.(string); ok {
- return handleFn(typeStr)
- } else if typeIArr, ok := typeValue.([]interface{}); ok {
- for _, typeI := range typeIArr {
- if typeStr, ok := typeI.(string); ok {
- if err := handleFn(typeStr); err == nil {
- return nil
- } else if err == ErrUnhandledType {
- // Keep trying other types: only if all fail do we return this error.
- continue
- } else {
- return err
- }
- }
- }
- return ErrUnhandledType
- } else {
- return ErrUnhandledType
- }
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_manager.go b/vendor/github.com/go-fed/activity/streams/gen_manager.go
deleted file mode 100644
index 0f933e1fd..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_manager.go
+++ /dev/null
@@ -1,2307 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- propertyaccuracy "github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy"
- propertyactor "github.com/go-fed/activity/streams/impl/activitystreams/property_actor"
- propertyaltitude "github.com/go-fed/activity/streams/impl/activitystreams/property_altitude"
- propertyanyof "github.com/go-fed/activity/streams/impl/activitystreams/property_anyof"
- propertyattachment "github.com/go-fed/activity/streams/impl/activitystreams/property_attachment"
- propertyattributedto "github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto"
- propertyaudience "github.com/go-fed/activity/streams/impl/activitystreams/property_audience"
- propertybcc "github.com/go-fed/activity/streams/impl/activitystreams/property_bcc"
- propertybto "github.com/go-fed/activity/streams/impl/activitystreams/property_bto"
- propertycc "github.com/go-fed/activity/streams/impl/activitystreams/property_cc"
- propertyclosed "github.com/go-fed/activity/streams/impl/activitystreams/property_closed"
- propertycontent "github.com/go-fed/activity/streams/impl/activitystreams/property_content"
- propertycontext "github.com/go-fed/activity/streams/impl/activitystreams/property_context"
- propertycurrent "github.com/go-fed/activity/streams/impl/activitystreams/property_current"
- propertydeleted "github.com/go-fed/activity/streams/impl/activitystreams/property_deleted"
- propertydescribes "github.com/go-fed/activity/streams/impl/activitystreams/property_describes"
- propertyduration "github.com/go-fed/activity/streams/impl/activitystreams/property_duration"
- propertyendtime "github.com/go-fed/activity/streams/impl/activitystreams/property_endtime"
- propertyfirst "github.com/go-fed/activity/streams/impl/activitystreams/property_first"
- propertyfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_followers"
- propertyfollowing "github.com/go-fed/activity/streams/impl/activitystreams/property_following"
- propertyformertype "github.com/go-fed/activity/streams/impl/activitystreams/property_formertype"
- propertygenerator "github.com/go-fed/activity/streams/impl/activitystreams/property_generator"
- propertyheight "github.com/go-fed/activity/streams/impl/activitystreams/property_height"
- propertyhref "github.com/go-fed/activity/streams/impl/activitystreams/property_href"
- propertyhreflang "github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang"
- propertyicon "github.com/go-fed/activity/streams/impl/activitystreams/property_icon"
- propertyimage "github.com/go-fed/activity/streams/impl/activitystreams/property_image"
- propertyinbox "github.com/go-fed/activity/streams/impl/activitystreams/property_inbox"
- propertyinreplyto "github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto"
- propertyinstrument "github.com/go-fed/activity/streams/impl/activitystreams/property_instrument"
- propertyitems "github.com/go-fed/activity/streams/impl/activitystreams/property_items"
- propertylast "github.com/go-fed/activity/streams/impl/activitystreams/property_last"
- propertylatitude "github.com/go-fed/activity/streams/impl/activitystreams/property_latitude"
- propertyliked "github.com/go-fed/activity/streams/impl/activitystreams/property_liked"
- propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes"
- propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location"
- propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude"
- propertymanuallyapprovesfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
- propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype"
- propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name"
- propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next"
- propertyobject "github.com/go-fed/activity/streams/impl/activitystreams/property_object"
- propertyoneof "github.com/go-fed/activity/streams/impl/activitystreams/property_oneof"
- propertyordereditems "github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems"
- propertyorigin "github.com/go-fed/activity/streams/impl/activitystreams/property_origin"
- propertyoutbox "github.com/go-fed/activity/streams/impl/activitystreams/property_outbox"
- propertypartof "github.com/go-fed/activity/streams/impl/activitystreams/property_partof"
- propertypreferredusername "github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername"
- propertyprev "github.com/go-fed/activity/streams/impl/activitystreams/property_prev"
- propertypreview "github.com/go-fed/activity/streams/impl/activitystreams/property_preview"
- propertypublished "github.com/go-fed/activity/streams/impl/activitystreams/property_published"
- propertyradius "github.com/go-fed/activity/streams/impl/activitystreams/property_radius"
- propertyrel "github.com/go-fed/activity/streams/impl/activitystreams/property_rel"
- propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship"
- propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies"
- propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result"
- propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares"
- propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source"
- propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex"
- propertystarttime "github.com/go-fed/activity/streams/impl/activitystreams/property_starttime"
- propertystreams "github.com/go-fed/activity/streams/impl/activitystreams/property_streams"
- propertysubject "github.com/go-fed/activity/streams/impl/activitystreams/property_subject"
- propertysummary "github.com/go-fed/activity/streams/impl/activitystreams/property_summary"
- propertytag "github.com/go-fed/activity/streams/impl/activitystreams/property_tag"
- propertytarget "github.com/go-fed/activity/streams/impl/activitystreams/property_target"
- propertyto "github.com/go-fed/activity/streams/impl/activitystreams/property_to"
- propertytotalitems "github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems"
- propertyunits "github.com/go-fed/activity/streams/impl/activitystreams/property_units"
- propertyupdated "github.com/go-fed/activity/streams/impl/activitystreams/property_updated"
- propertyurl "github.com/go-fed/activity/streams/impl/activitystreams/property_url"
- propertywidth "github.com/go-fed/activity/streams/impl/activitystreams/property_width"
- typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept"
- typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity"
- typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add"
- typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce"
- typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application"
- typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive"
- typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article"
- typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio"
- typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block"
- typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection"
- typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage"
- typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create"
- typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete"
- typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike"
- typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document"
- typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event"
- typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag"
- typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow"
- typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group"
- typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore"
- typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image"
- typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity"
- typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite"
- typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join"
- typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave"
- typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like"
- typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link"
- typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen"
- typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention"
- typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move"
- typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note"
- typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object"
- typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer"
- typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection"
- typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage"
- typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization"
- typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page"
- typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person"
- typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place"
- typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile"
- typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question"
- typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read"
- typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject"
- typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship"
- typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove"
- typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service"
- typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept"
- typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject"
- typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone"
- typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel"
- typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo"
- typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update"
- typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video"
- typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
- propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto"
- propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed"
- propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby"
- propertydependants "github.com/go-fed/activity/streams/impl/forgefed/property_dependants"
- propertydependedby "github.com/go-fed/activity/streams/impl/forgefed/property_dependedby"
- propertydependencies "github.com/go-fed/activity/streams/impl/forgefed/property_dependencies"
- propertydependson "github.com/go-fed/activity/streams/impl/forgefed/property_dependson"
- propertydescription "github.com/go-fed/activity/streams/impl/forgefed/property_description"
- propertyearlyitems "github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems"
- propertyfilesadded "github.com/go-fed/activity/streams/impl/forgefed/property_filesadded"
- propertyfilesmodified "github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified"
- propertyfilesremoved "github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved"
- propertyforks "github.com/go-fed/activity/streams/impl/forgefed/property_forks"
- propertyhash "github.com/go-fed/activity/streams/impl/forgefed/property_hash"
- propertyisresolved "github.com/go-fed/activity/streams/impl/forgefed/property_isresolved"
- propertyref "github.com/go-fed/activity/streams/impl/forgefed/property_ref"
- propertyteam "github.com/go-fed/activity/streams/impl/forgefed/property_team"
- propertyticketstrackedby "github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby"
- propertytracksticketsfor "github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor"
- typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
- typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
- typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
- typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
- typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
- typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
- propertyid "github.com/go-fed/activity/streams/impl/jsonld/property_id"
- propertytype "github.com/go-fed/activity/streams/impl/jsonld/property_type"
- propertyblurhash "github.com/go-fed/activity/streams/impl/toot/property_blurhash"
- propertydiscoverable "github.com/go-fed/activity/streams/impl/toot/property_discoverable"
- propertyfeatured "github.com/go-fed/activity/streams/impl/toot/property_featured"
- propertysignaturealgorithm "github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm"
- propertysignaturevalue "github.com/go-fed/activity/streams/impl/toot/property_signaturevalue"
- propertyvoterscount "github.com/go-fed/activity/streams/impl/toot/property_voterscount"
- typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji"
- typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof"
- propertyowner "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner"
- propertypublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey"
- propertypublickeypem "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem"
- typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// Manager manages interface types and deserializations for use by generated code.
-// Application code implicitly uses this manager at run-time to create
-// concrete implementations of the interfaces.
-type Manager struct {
-}
-
-// DeserializeAcceptActivityStreams returns the deserialization method for the
-// "ActivityStreamsAccept" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAccept, error) {
- i, err := typeaccept.DeserializeAccept(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeAccuracyPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsAccuracyProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeAccuracyPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccuracyProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAccuracyProperty, error) {
- i, err := propertyaccuracy.DeserializeAccuracyProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeActivityActivityStreams returns the deserialization method for the
-// "ActivityStreamsActivity" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsActivity, error) {
- i, err := typeactivity.DeserializeActivity(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeActorPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsActorProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsActorProperty, error) {
- i, err := propertyactor.DeserializeActorProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeAddActivityStreams returns the deserialization method for the
-// "ActivityStreamsAdd" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAdd, error) {
- i, err := typeadd.DeserializeAdd(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeAltitudePropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsAltitudeProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) {
- i, err := propertyaltitude.DeserializeAltitudeProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeAnnounceActivityStreams returns the deserialization method for the
-// "ActivityStreamsAnnounce" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAnnounce, error) {
- i, err := typeannounce.DeserializeAnnounce(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeAnyOfPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsAnyOfProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeAnyOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) {
- i, err := propertyanyof.DeserializeAnyOfProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeApplicationActivityStreams returns the deserialization method for
-// the "ActivityStreamsApplication" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsApplication, error) {
- i, err := typeapplication.DeserializeApplication(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeArriveActivityStreams returns the deserialization method for the
-// "ActivityStreamsArrive" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsArrive, error) {
- i, err := typearrive.DeserializeArrive(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeArticleActivityStreams returns the deserialization method for the
-// "ActivityStreamsArticle" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsArticle, error) {
- i, err := typearticle.DeserializeArticle(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeAssignedToPropertyForgeFed returns the deserialization method for
-// the "ForgeFedAssignedToProperty" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeAssignedToPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedAssignedToProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedAssignedToProperty, error) {
- i, err := propertyassignedto.DeserializeAssignedToProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeAttachmentPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsAttachmentProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) {
- i, err := propertyattachment.DeserializeAttachmentProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeAttributedToPropertyActivityStreams returns the deserialization
-// method for the "ActivityStreamsAttributedToProperty" non-functional
-// property in the vocabulary "ActivityStreams"
-func (this Manager) DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) {
- i, err := propertyattributedto.DeserializeAttributedToProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeAudiencePropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsAudienceProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAudienceProperty, error) {
- i, err := propertyaudience.DeserializeAudienceProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeAudioActivityStreams returns the deserialization method for the
-// "ActivityStreamsAudio" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAudio, error) {
- i, err := typeaudio.DeserializeAudio(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeBccPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsBccProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBccProperty, error) {
- i, err := propertybcc.DeserializeBccProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeBlockActivityStreams returns the deserialization method for the
-// "ActivityStreamsBlock" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBlock, error) {
- i, err := typeblock.DeserializeBlock(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeBlurhashPropertyToot returns the deserialization method for the
-// "TootBlurhashProperty" non-functional property in the vocabulary "Toot"
-func (this Manager) DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootBlurhashProperty, error) {
- i, err := propertyblurhash.DeserializeBlurhashProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeBranchForgeFed returns the deserialization method for the
-// "ForgeFedBranch" non-functional property in the vocabulary "ForgeFed"
-func (this Manager) DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedBranch, error) {
- i, err := typebranch.DeserializeBranch(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeBtoPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsBtoProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBtoProperty, error) {
- i, err := propertybto.DeserializeBtoProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeCcPropertyActivityStreams returns the deserialization method for the
-// "ActivityStreamsCcProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCcProperty, error) {
- i, err := propertycc.DeserializeCcProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeClosedPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsClosedProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeClosedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsClosedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsClosedProperty, error) {
- i, err := propertyclosed.DeserializeClosedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeCollectionActivityStreams returns the deserialization method for the
-// "ActivityStreamsCollection" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCollection, error) {
- i, err := typecollection.DeserializeCollection(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeCollectionPageActivityStreams returns the deserialization method for
-// the "ActivityStreamsCollectionPage" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCollectionPage, error) {
- i, err := typecollectionpage.DeserializeCollectionPage(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeCommitForgeFed returns the deserialization method for the
-// "ForgeFedCommit" non-functional property in the vocabulary "ForgeFed"
-func (this Manager) DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedCommit, error) {
- i, err := typecommit.DeserializeCommit(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeCommittedByPropertyForgeFed returns the deserialization method for
-// the "ForgeFedCommittedByProperty" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeCommittedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommittedByProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedCommittedByProperty, error) {
- i, err := propertycommittedby.DeserializeCommittedByProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeCommittedPropertyForgeFed returns the deserialization method for the
-// "ForgeFedCommittedProperty" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeCommittedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommittedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedCommittedProperty, error) {
- i, err := propertycommitted.DeserializeCommittedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeContentPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsContentProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContentProperty, error) {
- i, err := propertycontent.DeserializeContentProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeContextPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsContextProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContextProperty, error) {
- i, err := propertycontext.DeserializeContextProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeCreateActivityStreams returns the deserialization method for the
-// "ActivityStreamsCreate" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCreate, error) {
- i, err := typecreate.DeserializeCreate(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeCurrentPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsCurrentProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeCurrentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCurrentProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCurrentProperty, error) {
- i, err := propertycurrent.DeserializeCurrentProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDeleteActivityStreams returns the deserialization method for the
-// "ActivityStreamsDelete" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDelete, error) {
- i, err := typedelete.DeserializeDelete(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDeletedPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsDeletedProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeDeletedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDeletedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDeletedProperty, error) {
- i, err := propertydeleted.DeserializeDeletedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDependantsPropertyForgeFed returns the deserialization method for
-// the "ForgeFedDependantsProperty" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeDependantsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependantsProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependantsProperty, error) {
- i, err := propertydependants.DeserializeDependantsProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDependedByPropertyForgeFed returns the deserialization method for
-// the "ForgeFedDependedByProperty" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeDependedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependedByProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependedByProperty, error) {
- i, err := propertydependedby.DeserializeDependedByProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDependenciesPropertyForgeFed returns the deserialization method for
-// the "ForgeFedDependenciesProperty" non-functional property in the
-// vocabulary "ForgeFed"
-func (this Manager) DeserializeDependenciesPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependenciesProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependenciesProperty, error) {
- i, err := propertydependencies.DeserializeDependenciesProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDependsOnPropertyForgeFed returns the deserialization method for the
-// "ForgeFedDependsOnProperty" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeDependsOnPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDependsOnProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDependsOnProperty, error) {
- i, err := propertydependson.DeserializeDependsOnProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDescribesPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsDescribesProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeDescribesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDescribesProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDescribesProperty, error) {
- i, err := propertydescribes.DeserializeDescribesProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDescriptionPropertyForgeFed returns the deserialization method for
-// the "ForgeFedDescriptionProperty" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeDescriptionPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedDescriptionProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedDescriptionProperty, error) {
- i, err := propertydescription.DeserializeDescriptionProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDiscoverablePropertyToot returns the deserialization method for the
-// "TootDiscoverableProperty" non-functional property in the vocabulary "Toot"
-func (this Manager) DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootDiscoverableProperty, error) {
- i, err := propertydiscoverable.DeserializeDiscoverableProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDislikeActivityStreams returns the deserialization method for the
-// "ActivityStreamsDislike" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDislike, error) {
- i, err := typedislike.DeserializeDislike(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDocumentActivityStreams returns the deserialization method for the
-// "ActivityStreamsDocument" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDocument, error) {
- i, err := typedocument.DeserializeDocument(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeDurationPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsDurationProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsDurationProperty, error) {
- i, err := propertyduration.DeserializeDurationProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeEarlyItemsPropertyForgeFed returns the deserialization method for
-// the "ForgeFedEarlyItemsProperty" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeEarlyItemsPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedEarlyItemsProperty, error) {
- i, err := propertyearlyitems.DeserializeEarlyItemsProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeEmojiToot returns the deserialization method for the "TootEmoji"
-// non-functional property in the vocabulary "Toot"
-func (this Manager) DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootEmoji, error) {
- i, err := typeemoji.DeserializeEmoji(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeEndTimePropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsEndTimeProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) {
- i, err := propertyendtime.DeserializeEndTimeProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeEventActivityStreams returns the deserialization method for the
-// "ActivityStreamsEvent" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsEvent, error) {
- i, err := typeevent.DeserializeEvent(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeFeaturedPropertyToot returns the deserialization method for the
-// "TootFeaturedProperty" non-functional property in the vocabulary "Toot"
-func (this Manager) DeserializeFeaturedPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFeaturedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootFeaturedProperty, error) {
- i, err := propertyfeatured.DeserializeFeaturedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeFilesAddedPropertyForgeFed returns the deserialization method for
-// the "ForgeFedFilesAddedProperty" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeFilesAddedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesAddedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesAddedProperty, error) {
- i, err := propertyfilesadded.DeserializeFilesAddedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeFilesModifiedPropertyForgeFed returns the deserialization method for
-// the "ForgeFedFilesModifiedProperty" non-functional property in the
-// vocabulary "ForgeFed"
-func (this Manager) DeserializeFilesModifiedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesModifiedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesModifiedProperty, error) {
- i, err := propertyfilesmodified.DeserializeFilesModifiedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeFilesRemovedPropertyForgeFed returns the deserialization method for
-// the "ForgeFedFilesRemovedProperty" non-functional property in the
-// vocabulary "ForgeFed"
-func (this Manager) DeserializeFilesRemovedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedFilesRemovedProperty, error) {
- i, err := propertyfilesremoved.DeserializeFilesRemovedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeFirstPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsFirstProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeFirstPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFirstProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFirstProperty, error) {
- i, err := propertyfirst.DeserializeFirstProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeFlagActivityStreams returns the deserialization method for the
-// "ActivityStreamsFlag" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFlag, error) {
- i, err := typeflag.DeserializeFlag(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeFollowActivityStreams returns the deserialization method for the
-// "ActivityStreamsFollow" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollow, error) {
- i, err := typefollow.DeserializeFollow(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeFollowersPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsFollowersProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowersProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollowersProperty, error) {
- i, err := propertyfollowers.DeserializeFollowersProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeFollowingPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsFollowingProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeFollowingPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowingProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFollowingProperty, error) {
- i, err := propertyfollowing.DeserializeFollowingProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeForksPropertyForgeFed returns the deserialization method for the
-// "ForgeFedForksProperty" non-functional property in the vocabulary "ForgeFed"
-func (this Manager) DeserializeForksPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedForksProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedForksProperty, error) {
- i, err := propertyforks.DeserializeForksProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeFormerTypePropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsFormerTypeProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeFormerTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) {
- i, err := propertyformertype.DeserializeFormerTypeProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeGeneratorPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsGeneratorProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) {
- i, err := propertygenerator.DeserializeGeneratorProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeGroupActivityStreams returns the deserialization method for the
-// "ActivityStreamsGroup" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsGroup, error) {
- i, err := typegroup.DeserializeGroup(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeHashPropertyForgeFed returns the deserialization method for the
-// "ForgeFedHashProperty" non-functional property in the vocabulary "ForgeFed"
-func (this Manager) DeserializeHashPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedHashProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedHashProperty, error) {
- i, err := propertyhash.DeserializeHashProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeHeightPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsHeightProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeHeightPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHeightProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHeightProperty, error) {
- i, err := propertyheight.DeserializeHeightProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeHrefPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsHrefProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeHrefPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHrefProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHrefProperty, error) {
- i, err := propertyhref.DeserializeHrefProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeHreflangPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsHreflangProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeHreflangPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHreflangProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsHreflangProperty, error) {
- i, err := propertyhreflang.DeserializeHreflangProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeIconPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsIconProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIconProperty, error) {
- i, err := propertyicon.DeserializeIconProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeIdPropertyJSONLD returns the deserialization method for the
-// "JSONLDIdProperty" non-functional property in the vocabulary "JSONLD"
-func (this Manager) DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDIdProperty, error) {
- i, err := propertyid.DeserializeIdProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeIdentityProofToot returns the deserialization method for the
-// "TootIdentityProof" non-functional property in the vocabulary "Toot"
-func (this Manager) DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootIdentityProof, error) {
- i, err := typeidentityproof.DeserializeIdentityProof(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeIgnoreActivityStreams returns the deserialization method for the
-// "ActivityStreamsIgnore" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIgnore, error) {
- i, err := typeignore.DeserializeIgnore(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeImageActivityStreams returns the deserialization method for the
-// "ActivityStreamsImage" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsImage, error) {
- i, err := typeimage.DeserializeImage(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeImagePropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsImageProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsImageProperty, error) {
- i, err := propertyimage.DeserializeImageProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeInReplyToPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsInReplyToProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) {
- i, err := propertyinreplyto.DeserializeInReplyToProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeInboxPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsInboxProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInboxProperty, error) {
- i, err := propertyinbox.DeserializeInboxProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeInstrumentPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsInstrumentProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) {
- i, err := propertyinstrument.DeserializeInstrumentProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeIntransitiveActivityActivityStreams returns the deserialization
-// method for the "ActivityStreamsIntransitiveActivity" non-functional
-// property in the vocabulary "ActivityStreams"
-func (this Manager) DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error) {
- i, err := typeintransitiveactivity.DeserializeIntransitiveActivity(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeInviteActivityStreams returns the deserialization method for the
-// "ActivityStreamsInvite" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInvite, error) {
- i, err := typeinvite.DeserializeInvite(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeIsResolvedPropertyForgeFed returns the deserialization method for
-// the "ForgeFedIsResolvedProperty" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeIsResolvedPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedIsResolvedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedIsResolvedProperty, error) {
- i, err := propertyisresolved.DeserializeIsResolvedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeItemsPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsItemsProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsItemsProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsItemsProperty, error) {
- i, err := propertyitems.DeserializeItemsProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeJoinActivityStreams returns the deserialization method for the
-// "ActivityStreamsJoin" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsJoin, error) {
- i, err := typejoin.DeserializeJoin(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeLastPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsLastProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeLastPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLastProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLastProperty, error) {
- i, err := propertylast.DeserializeLastProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeLatitudePropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsLatitudeProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeLatitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLatitudeProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLatitudeProperty, error) {
- i, err := propertylatitude.DeserializeLatitudeProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeLeaveActivityStreams returns the deserialization method for the
-// "ActivityStreamsLeave" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLeave, error) {
- i, err := typeleave.DeserializeLeave(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeLikeActivityStreams returns the deserialization method for the
-// "ActivityStreamsLike" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLike, error) {
- i, err := typelike.DeserializeLike(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeLikedPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsLikedProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeLikedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLikedProperty, error) {
- i, err := propertyliked.DeserializeLikedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeLikesPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsLikesProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLikesProperty, error) {
- i, err := propertylikes.DeserializeLikesProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeLinkActivityStreams returns the deserialization method for the
-// "ActivityStreamsLink" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLink, error) {
- i, err := typelink.DeserializeLink(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeListenActivityStreams returns the deserialization method for the
-// "ActivityStreamsListen" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsListen, error) {
- i, err := typelisten.DeserializeListen(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeLocationPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsLocationProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLocationProperty, error) {
- i, err := propertylocation.DeserializeLocationProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeLongitudePropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsLongitudeProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeLongitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLongitudeProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLongitudeProperty, error) {
- i, err := propertylongitude.DeserializeLongitudeProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the
-// deserialization method for the
-// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional property
-// in the vocabulary "ActivityStreams"
-func (this Manager) DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) {
- i, err := propertymanuallyapprovesfollowers.DeserializeManuallyApprovesFollowersProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeMediaTypePropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsMediaTypeProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) {
- i, err := propertymediatype.DeserializeMediaTypeProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeMentionActivityStreams returns the deserialization method for the
-// "ActivityStreamsMention" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMention, error) {
- i, err := typemention.DeserializeMention(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeMoveActivityStreams returns the deserialization method for the
-// "ActivityStreamsMove" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMove, error) {
- i, err := typemove.DeserializeMove(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeNamePropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsNameProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNameProperty, error) {
- i, err := propertyname.DeserializeNameProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeNextPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsNextProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeNextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNextProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNextProperty, error) {
- i, err := propertynext.DeserializeNextProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeNoteActivityStreams returns the deserialization method for the
-// "ActivityStreamsNote" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNote, error) {
- i, err := typenote.DeserializeNote(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeObjectActivityStreams returns the deserialization method for the
-// "ActivityStreamsObject" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsObject, error) {
- i, err := typeobject.DeserializeObject(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeObjectPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsObjectProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsObjectProperty, error) {
- i, err := propertyobject.DeserializeObjectProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeOfferActivityStreams returns the deserialization method for the
-// "ActivityStreamsOffer" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOffer, error) {
- i, err := typeoffer.DeserializeOffer(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeOneOfPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsOneOfProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeOneOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOneOfProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOneOfProperty, error) {
- i, err := propertyoneof.DeserializeOneOfProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeOrderedCollectionActivityStreams returns the deserialization method
-// for the "ActivityStreamsOrderedCollection" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedCollection, error) {
- i, err := typeorderedcollection.DeserializeOrderedCollection(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeOrderedCollectionPageActivityStreams returns the deserialization
-// method for the "ActivityStreamsOrderedCollectionPage" non-functional
-// property in the vocabulary "ActivityStreams"
-func (this Manager) DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error) {
- i, err := typeorderedcollectionpage.DeserializeOrderedCollectionPage(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeOrderedItemsPropertyActivityStreams returns the deserialization
-// method for the "ActivityStreamsOrderedItemsProperty" non-functional
-// property in the vocabulary "ActivityStreams"
-func (this Manager) DeserializeOrderedItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) {
- i, err := propertyordereditems.DeserializeOrderedItemsProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeOrganizationActivityStreams returns the deserialization method for
-// the "ActivityStreamsOrganization" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrganization, error) {
- i, err := typeorganization.DeserializeOrganization(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeOriginPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsOriginProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOriginProperty, error) {
- i, err := propertyorigin.DeserializeOriginProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeOutboxPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsOutboxProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeOutboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOutboxProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOutboxProperty, error) {
- i, err := propertyoutbox.DeserializeOutboxProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeOwnerPropertyW3IDSecurityV1 returns the deserialization method for
-// the "W3IDSecurityV1OwnerProperty" non-functional property in the vocabulary
-// "W3IDSecurityV1"
-func (this Manager) DeserializeOwnerPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1OwnerProperty, error) {
- i, err := propertyowner.DeserializeOwnerProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePageActivityStreams returns the deserialization method for the
-// "ActivityStreamsPage" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPage, error) {
- i, err := typepage.DeserializePage(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePartOfPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsPartOfProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializePartOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPartOfProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPartOfProperty, error) {
- i, err := propertypartof.DeserializePartOfProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePersonActivityStreams returns the deserialization method for the
-// "ActivityStreamsPerson" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPerson, error) {
- i, err := typeperson.DeserializePerson(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePlaceActivityStreams returns the deserialization method for the
-// "ActivityStreamsPlace" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPlace, error) {
- i, err := typeplace.DeserializePlace(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePreferredUsernamePropertyActivityStreams returns the deserialization
-// method for the "ActivityStreamsPreferredUsernameProperty" non-functional
-// property in the vocabulary "ActivityStreams"
-func (this Manager) DeserializePreferredUsernamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error) {
- i, err := propertypreferredusername.DeserializePreferredUsernameProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePrevPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsPrevProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializePrevPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPrevProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPrevProperty, error) {
- i, err := propertyprev.DeserializePrevProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePreviewPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsPreviewProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPreviewProperty, error) {
- i, err := propertypreview.DeserializePreviewProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeProfileActivityStreams returns the deserialization method for the
-// "ActivityStreamsProfile" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsProfile, error) {
- i, err := typeprofile.DeserializeProfile(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePublicKeyPemPropertyW3IDSecurityV1 returns the deserialization
-// method for the "W3IDSecurityV1PublicKeyPemProperty" non-functional property
-// in the vocabulary "W3IDSecurityV1"
-func (this Manager) DeserializePublicKeyPemPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyPemProperty, error) {
- i, err := propertypublickeypem.DeserializePublicKeyPemProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePublicKeyPropertyW3IDSecurityV1 returns the deserialization method
-// for the "W3IDSecurityV1PublicKeyProperty" non-functional property in the
-// vocabulary "W3IDSecurityV1"
-func (this Manager) DeserializePublicKeyPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error) {
- i, err := propertypublickey.DeserializePublicKeyProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePublicKeyW3IDSecurityV1 returns the deserialization method for the
-// "W3IDSecurityV1PublicKey" non-functional property in the vocabulary
-// "W3IDSecurityV1"
-func (this Manager) DeserializePublicKeyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKey, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.W3IDSecurityV1PublicKey, error) {
- i, err := typepublickey.DeserializePublicKey(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePublishedPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsPublishedProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPublishedProperty, error) {
- i, err := propertypublished.DeserializePublishedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializePushForgeFed returns the deserialization method for the
-// "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
-func (this Manager) DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedPush, error) {
- i, err := typepush.DeserializePush(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeQuestionActivityStreams returns the deserialization method for the
-// "ActivityStreamsQuestion" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsQuestion, error) {
- i, err := typequestion.DeserializeQuestion(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeRadiusPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsRadiusProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeRadiusPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRadiusProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRadiusProperty, error) {
- i, err := propertyradius.DeserializeRadiusProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeReadActivityStreams returns the deserialization method for the
-// "ActivityStreamsRead" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRead, error) {
- i, err := typeread.DeserializeRead(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeRefPropertyForgeFed returns the deserialization method for the
-// "ForgeFedRefProperty" non-functional property in the vocabulary "ForgeFed"
-func (this Manager) DeserializeRefPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRefProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedRefProperty, error) {
- i, err := propertyref.DeserializeRefProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeRejectActivityStreams returns the deserialization method for the
-// "ActivityStreamsReject" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsReject, error) {
- i, err := typereject.DeserializeReject(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeRelPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsRelProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeRelPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelProperty, error) {
- i, err := propertyrel.DeserializeRelProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeRelationshipActivityStreams returns the deserialization method for
-// the "ActivityStreamsRelationship" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelationship, error) {
- i, err := typerelationship.DeserializeRelationship(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeRelationshipPropertyActivityStreams returns the deserialization
-// method for the "ActivityStreamsRelationshipProperty" non-functional
-// property in the vocabulary "ActivityStreams"
-func (this Manager) DeserializeRelationshipPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) {
- i, err := propertyrelationship.DeserializeRelationshipProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeRemoveActivityStreams returns the deserialization method for the
-// "ActivityStreamsRemove" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRemove, error) {
- i, err := typeremove.DeserializeRemove(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeRepliesPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsRepliesProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRepliesProperty, error) {
- i, err := propertyreplies.DeserializeRepliesProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeRepositoryForgeFed returns the deserialization method for the
-// "ForgeFedRepository" non-functional property in the vocabulary "ForgeFed"
-func (this Manager) DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedRepository, error) {
- i, err := typerepository.DeserializeRepository(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeResultPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsResultProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsResultProperty, error) {
- i, err := propertyresult.DeserializeResultProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeServiceActivityStreams returns the deserialization method for the
-// "ActivityStreamsService" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsService, error) {
- i, err := typeservice.DeserializeService(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeSharesPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsSharesProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSharesProperty, error) {
- i, err := propertyshares.DeserializeSharesProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeSignatureAlgorithmPropertyToot returns the deserialization method
-// for the "TootSignatureAlgorithmProperty" non-functional property in the
-// vocabulary "Toot"
-func (this Manager) DeserializeSignatureAlgorithmPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureAlgorithmProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootSignatureAlgorithmProperty, error) {
- i, err := propertysignaturealgorithm.DeserializeSignatureAlgorithmProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeSignatureValuePropertyToot returns the deserialization method for
-// the "TootSignatureValueProperty" non-functional property in the vocabulary
-// "Toot"
-func (this Manager) DeserializeSignatureValuePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootSignatureValueProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootSignatureValueProperty, error) {
- i, err := propertysignaturevalue.DeserializeSignatureValueProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeSourcePropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsSourceProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSourceProperty, error) {
- i, err := propertysource.DeserializeSourceProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeStartIndexPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsStartIndexProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeStartIndexPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartIndexProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStartIndexProperty, error) {
- i, err := propertystartindex.DeserializeStartIndexProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeStartTimePropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsStartTimeProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) {
- i, err := propertystarttime.DeserializeStartTimeProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeStreamsPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsStreamsProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeStreamsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStreamsProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStreamsProperty, error) {
- i, err := propertystreams.DeserializeStreamsProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeSubjectPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsSubjectProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeSubjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSubjectProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSubjectProperty, error) {
- i, err := propertysubject.DeserializeSubjectProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeSummaryPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsSummaryProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSummaryProperty, error) {
- i, err := propertysummary.DeserializeSummaryProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTagPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsTagProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTagProperty, error) {
- i, err := propertytag.DeserializeTagProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTargetPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsTargetProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTargetProperty, error) {
- i, err := propertytarget.DeserializeTargetProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTeamPropertyForgeFed returns the deserialization method for the
-// "ForgeFedTeamProperty" non-functional property in the vocabulary "ForgeFed"
-func (this Manager) DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTeamProperty, error) {
- i, err := propertyteam.DeserializeTeamProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTentativeAcceptActivityStreams returns the deserialization method
-// for the "ActivityStreamsTentativeAccept" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTentativeAccept, error) {
- i, err := typetentativeaccept.DeserializeTentativeAccept(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTentativeRejectActivityStreams returns the deserialization method
-// for the "ActivityStreamsTentativeReject" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTentativeReject, error) {
- i, err := typetentativereject.DeserializeTentativeReject(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTicketDependencyForgeFed returns the deserialization method for the
-// "ForgeFedTicketDependency" non-functional property in the vocabulary
-// "ForgeFed"
-func (this Manager) DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTicketDependency, error) {
- i, err := typeticketdependency.DeserializeTicketDependency(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTicketForgeFed returns the deserialization method for the
-// "ForgeFedTicket" non-functional property in the vocabulary "ForgeFed"
-func (this Manager) DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTicket, error) {
- i, err := typeticket.DeserializeTicket(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization method
-// for the "ForgeFedTicketsTrackedByProperty" non-functional property in the
-// vocabulary "ForgeFed"
-func (this Manager) DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error) {
- i, err := propertyticketstrackedby.DeserializeTicketsTrackedByProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeToPropertyActivityStreams returns the deserialization method for the
-// "ActivityStreamsToProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsToProperty, error) {
- i, err := propertyto.DeserializeToProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTombstoneActivityStreams returns the deserialization method for the
-// "ActivityStreamsTombstone" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTombstone, error) {
- i, err := typetombstone.DeserializeTombstone(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTotalItemsPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsTotalItemsProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeTotalItemsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTotalItemsProperty, error) {
- i, err := propertytotalitems.DeserializeTotalItemsProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTracksTicketsForPropertyForgeFed returns the deserialization method
-// for the "ForgeFedTracksTicketsForProperty" non-functional property in the
-// vocabulary "ForgeFed"
-func (this Manager) DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error) {
- i, err := propertytracksticketsfor.DeserializeTracksTicketsForProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTravelActivityStreams returns the deserialization method for the
-// "ActivityStreamsTravel" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTravel, error) {
- i, err := typetravel.DeserializeTravel(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeTypePropertyJSONLD returns the deserialization method for the
-// "JSONLDTypeProperty" non-functional property in the vocabulary "JSONLD"
-func (this Manager) DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.JSONLDTypeProperty, error) {
- i, err := propertytype.DeserializeTypeProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeUndoActivityStreams returns the deserialization method for the
-// "ActivityStreamsUndo" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUndo, error) {
- i, err := typeundo.DeserializeUndo(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeUnitsPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsUnitsProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeUnitsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUnitsProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUnitsProperty, error) {
- i, err := propertyunits.DeserializeUnitsProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeUpdateActivityStreams returns the deserialization method for the
-// "ActivityStreamsUpdate" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUpdate, error) {
- i, err := typeupdate.DeserializeUpdate(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeUpdatedPropertyActivityStreams returns the deserialization method
-// for the "ActivityStreamsUpdatedProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) {
- i, err := propertyupdated.DeserializeUpdatedProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeUrlPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsUrlProperty" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUrlProperty, error) {
- i, err := propertyurl.DeserializeUrlProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeVideoActivityStreams returns the deserialization method for the
-// "ActivityStreamsVideo" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsVideo, error) {
- i, err := typevideo.DeserializeVideo(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeViewActivityStreams returns the deserialization method for the
-// "ActivityStreamsView" non-functional property in the vocabulary
-// "ActivityStreams"
-func (this Manager) DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsView, error) {
- i, err := typeview.DeserializeView(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeVotersCountPropertyToot returns the deserialization method for the
-// "TootVotersCountProperty" non-functional property in the vocabulary "Toot"
-func (this Manager) DeserializeVotersCountPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootVotersCountProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.TootVotersCountProperty, error) {
- i, err := propertyvoterscount.DeserializeVotersCountProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
-
-// DeserializeWidthPropertyActivityStreams returns the deserialization method for
-// the "ActivityStreamsWidthProperty" non-functional property in the
-// vocabulary "ActivityStreams"
-func (this Manager) DeserializeWidthPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsWidthProperty, error) {
- return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsWidthProperty, error) {
- i, err := propertywidth.DeserializeWidthProperty(m, aliasMap)
- if i == nil {
- return nil, err
- }
- return i, err
- }
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_disjoint.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_disjoint.go
deleted file mode 100644
index d755de119..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_disjoint.go
+++ /dev/null
@@ -1,385 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept"
- typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity"
- typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add"
- typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce"
- typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application"
- typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive"
- typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article"
- typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio"
- typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block"
- typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection"
- typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage"
- typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create"
- typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete"
- typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike"
- typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document"
- typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event"
- typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag"
- typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow"
- typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group"
- typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore"
- typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image"
- typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity"
- typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite"
- typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join"
- typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave"
- typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like"
- typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link"
- typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen"
- typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention"
- typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move"
- typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note"
- typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object"
- typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer"
- typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection"
- typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage"
- typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization"
- typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page"
- typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person"
- typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place"
- typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile"
- typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question"
- typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read"
- typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject"
- typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship"
- typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove"
- typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service"
- typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept"
- typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject"
- typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone"
- typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel"
- typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo"
- typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update"
- typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video"
- typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// ActivityStreamsAcceptIsDisjointWith returns true if Accept is disjoint with the
-// other's type.
-func ActivityStreamsAcceptIsDisjointWith(other vocab.Type) bool {
- return typeaccept.AcceptIsDisjointWith(other)
-}
-
-// ActivityStreamsActivityIsDisjointWith returns true if Activity is disjoint with
-// the other's type.
-func ActivityStreamsActivityIsDisjointWith(other vocab.Type) bool {
- return typeactivity.ActivityIsDisjointWith(other)
-}
-
-// ActivityStreamsAddIsDisjointWith returns true if Add is disjoint with the
-// other's type.
-func ActivityStreamsAddIsDisjointWith(other vocab.Type) bool {
- return typeadd.AddIsDisjointWith(other)
-}
-
-// ActivityStreamsAnnounceIsDisjointWith returns true if Announce is disjoint with
-// the other's type.
-func ActivityStreamsAnnounceIsDisjointWith(other vocab.Type) bool {
- return typeannounce.AnnounceIsDisjointWith(other)
-}
-
-// ActivityStreamsApplicationIsDisjointWith returns true if Application is
-// disjoint with the other's type.
-func ActivityStreamsApplicationIsDisjointWith(other vocab.Type) bool {
- return typeapplication.ApplicationIsDisjointWith(other)
-}
-
-// ActivityStreamsArriveIsDisjointWith returns true if Arrive is disjoint with the
-// other's type.
-func ActivityStreamsArriveIsDisjointWith(other vocab.Type) bool {
- return typearrive.ArriveIsDisjointWith(other)
-}
-
-// ActivityStreamsArticleIsDisjointWith returns true if Article is disjoint with
-// the other's type.
-func ActivityStreamsArticleIsDisjointWith(other vocab.Type) bool {
- return typearticle.ArticleIsDisjointWith(other)
-}
-
-// ActivityStreamsAudioIsDisjointWith returns true if Audio is disjoint with the
-// other's type.
-func ActivityStreamsAudioIsDisjointWith(other vocab.Type) bool {
- return typeaudio.AudioIsDisjointWith(other)
-}
-
-// ActivityStreamsBlockIsDisjointWith returns true if Block is disjoint with the
-// other's type.
-func ActivityStreamsBlockIsDisjointWith(other vocab.Type) bool {
- return typeblock.BlockIsDisjointWith(other)
-}
-
-// ActivityStreamsCollectionIsDisjointWith returns true if Collection is disjoint
-// with the other's type.
-func ActivityStreamsCollectionIsDisjointWith(other vocab.Type) bool {
- return typecollection.CollectionIsDisjointWith(other)
-}
-
-// ActivityStreamsCollectionPageIsDisjointWith returns true if CollectionPage is
-// disjoint with the other's type.
-func ActivityStreamsCollectionPageIsDisjointWith(other vocab.Type) bool {
- return typecollectionpage.CollectionPageIsDisjointWith(other)
-}
-
-// ActivityStreamsCreateIsDisjointWith returns true if Create is disjoint with the
-// other's type.
-func ActivityStreamsCreateIsDisjointWith(other vocab.Type) bool {
- return typecreate.CreateIsDisjointWith(other)
-}
-
-// ActivityStreamsDeleteIsDisjointWith returns true if Delete is disjoint with the
-// other's type.
-func ActivityStreamsDeleteIsDisjointWith(other vocab.Type) bool {
- return typedelete.DeleteIsDisjointWith(other)
-}
-
-// ActivityStreamsDislikeIsDisjointWith returns true if Dislike is disjoint with
-// the other's type.
-func ActivityStreamsDislikeIsDisjointWith(other vocab.Type) bool {
- return typedislike.DislikeIsDisjointWith(other)
-}
-
-// ActivityStreamsDocumentIsDisjointWith returns true if Document is disjoint with
-// the other's type.
-func ActivityStreamsDocumentIsDisjointWith(other vocab.Type) bool {
- return typedocument.DocumentIsDisjointWith(other)
-}
-
-// ActivityStreamsEventIsDisjointWith returns true if Event is disjoint with the
-// other's type.
-func ActivityStreamsEventIsDisjointWith(other vocab.Type) bool {
- return typeevent.EventIsDisjointWith(other)
-}
-
-// ActivityStreamsFlagIsDisjointWith returns true if Flag is disjoint with the
-// other's type.
-func ActivityStreamsFlagIsDisjointWith(other vocab.Type) bool {
- return typeflag.FlagIsDisjointWith(other)
-}
-
-// ActivityStreamsFollowIsDisjointWith returns true if Follow is disjoint with the
-// other's type.
-func ActivityStreamsFollowIsDisjointWith(other vocab.Type) bool {
- return typefollow.FollowIsDisjointWith(other)
-}
-
-// ActivityStreamsGroupIsDisjointWith returns true if Group is disjoint with the
-// other's type.
-func ActivityStreamsGroupIsDisjointWith(other vocab.Type) bool {
- return typegroup.GroupIsDisjointWith(other)
-}
-
-// ActivityStreamsIgnoreIsDisjointWith returns true if Ignore is disjoint with the
-// other's type.
-func ActivityStreamsIgnoreIsDisjointWith(other vocab.Type) bool {
- return typeignore.IgnoreIsDisjointWith(other)
-}
-
-// ActivityStreamsImageIsDisjointWith returns true if Image is disjoint with the
-// other's type.
-func ActivityStreamsImageIsDisjointWith(other vocab.Type) bool {
- return typeimage.ImageIsDisjointWith(other)
-}
-
-// ActivityStreamsIntransitiveActivityIsDisjointWith returns true if
-// IntransitiveActivity is disjoint with the other's type.
-func ActivityStreamsIntransitiveActivityIsDisjointWith(other vocab.Type) bool {
- return typeintransitiveactivity.IntransitiveActivityIsDisjointWith(other)
-}
-
-// ActivityStreamsInviteIsDisjointWith returns true if Invite is disjoint with the
-// other's type.
-func ActivityStreamsInviteIsDisjointWith(other vocab.Type) bool {
- return typeinvite.InviteIsDisjointWith(other)
-}
-
-// ActivityStreamsJoinIsDisjointWith returns true if Join is disjoint with the
-// other's type.
-func ActivityStreamsJoinIsDisjointWith(other vocab.Type) bool {
- return typejoin.JoinIsDisjointWith(other)
-}
-
-// ActivityStreamsLeaveIsDisjointWith returns true if Leave is disjoint with the
-// other's type.
-func ActivityStreamsLeaveIsDisjointWith(other vocab.Type) bool {
- return typeleave.LeaveIsDisjointWith(other)
-}
-
-// ActivityStreamsLikeIsDisjointWith returns true if Like is disjoint with the
-// other's type.
-func ActivityStreamsLikeIsDisjointWith(other vocab.Type) bool {
- return typelike.LikeIsDisjointWith(other)
-}
-
-// ActivityStreamsLinkIsDisjointWith returns true if Link is disjoint with the
-// other's type.
-func ActivityStreamsLinkIsDisjointWith(other vocab.Type) bool {
- return typelink.LinkIsDisjointWith(other)
-}
-
-// ActivityStreamsListenIsDisjointWith returns true if Listen is disjoint with the
-// other's type.
-func ActivityStreamsListenIsDisjointWith(other vocab.Type) bool {
- return typelisten.ListenIsDisjointWith(other)
-}
-
-// ActivityStreamsMentionIsDisjointWith returns true if Mention is disjoint with
-// the other's type.
-func ActivityStreamsMentionIsDisjointWith(other vocab.Type) bool {
- return typemention.MentionIsDisjointWith(other)
-}
-
-// ActivityStreamsMoveIsDisjointWith returns true if Move is disjoint with the
-// other's type.
-func ActivityStreamsMoveIsDisjointWith(other vocab.Type) bool {
- return typemove.MoveIsDisjointWith(other)
-}
-
-// ActivityStreamsNoteIsDisjointWith returns true if Note is disjoint with the
-// other's type.
-func ActivityStreamsNoteIsDisjointWith(other vocab.Type) bool {
- return typenote.NoteIsDisjointWith(other)
-}
-
-// ActivityStreamsObjectIsDisjointWith returns true if Object is disjoint with the
-// other's type.
-func ActivityStreamsObjectIsDisjointWith(other vocab.Type) bool {
- return typeobject.ObjectIsDisjointWith(other)
-}
-
-// ActivityStreamsOfferIsDisjointWith returns true if Offer is disjoint with the
-// other's type.
-func ActivityStreamsOfferIsDisjointWith(other vocab.Type) bool {
- return typeoffer.OfferIsDisjointWith(other)
-}
-
-// ActivityStreamsOrderedCollectionIsDisjointWith returns true if
-// OrderedCollection is disjoint with the other's type.
-func ActivityStreamsOrderedCollectionIsDisjointWith(other vocab.Type) bool {
- return typeorderedcollection.OrderedCollectionIsDisjointWith(other)
-}
-
-// ActivityStreamsOrderedCollectionPageIsDisjointWith returns true if
-// OrderedCollectionPage is disjoint with the other's type.
-func ActivityStreamsOrderedCollectionPageIsDisjointWith(other vocab.Type) bool {
- return typeorderedcollectionpage.OrderedCollectionPageIsDisjointWith(other)
-}
-
-// ActivityStreamsOrganizationIsDisjointWith returns true if Organization is
-// disjoint with the other's type.
-func ActivityStreamsOrganizationIsDisjointWith(other vocab.Type) bool {
- return typeorganization.OrganizationIsDisjointWith(other)
-}
-
-// ActivityStreamsPageIsDisjointWith returns true if Page is disjoint with the
-// other's type.
-func ActivityStreamsPageIsDisjointWith(other vocab.Type) bool {
- return typepage.PageIsDisjointWith(other)
-}
-
-// ActivityStreamsPersonIsDisjointWith returns true if Person is disjoint with the
-// other's type.
-func ActivityStreamsPersonIsDisjointWith(other vocab.Type) bool {
- return typeperson.PersonIsDisjointWith(other)
-}
-
-// ActivityStreamsPlaceIsDisjointWith returns true if Place is disjoint with the
-// other's type.
-func ActivityStreamsPlaceIsDisjointWith(other vocab.Type) bool {
- return typeplace.PlaceIsDisjointWith(other)
-}
-
-// ActivityStreamsProfileIsDisjointWith returns true if Profile is disjoint with
-// the other's type.
-func ActivityStreamsProfileIsDisjointWith(other vocab.Type) bool {
- return typeprofile.ProfileIsDisjointWith(other)
-}
-
-// ActivityStreamsQuestionIsDisjointWith returns true if Question is disjoint with
-// the other's type.
-func ActivityStreamsQuestionIsDisjointWith(other vocab.Type) bool {
- return typequestion.QuestionIsDisjointWith(other)
-}
-
-// ActivityStreamsReadIsDisjointWith returns true if Read is disjoint with the
-// other's type.
-func ActivityStreamsReadIsDisjointWith(other vocab.Type) bool {
- return typeread.ReadIsDisjointWith(other)
-}
-
-// ActivityStreamsRejectIsDisjointWith returns true if Reject is disjoint with the
-// other's type.
-func ActivityStreamsRejectIsDisjointWith(other vocab.Type) bool {
- return typereject.RejectIsDisjointWith(other)
-}
-
-// ActivityStreamsRelationshipIsDisjointWith returns true if Relationship is
-// disjoint with the other's type.
-func ActivityStreamsRelationshipIsDisjointWith(other vocab.Type) bool {
- return typerelationship.RelationshipIsDisjointWith(other)
-}
-
-// ActivityStreamsRemoveIsDisjointWith returns true if Remove is disjoint with the
-// other's type.
-func ActivityStreamsRemoveIsDisjointWith(other vocab.Type) bool {
- return typeremove.RemoveIsDisjointWith(other)
-}
-
-// ActivityStreamsServiceIsDisjointWith returns true if Service is disjoint with
-// the other's type.
-func ActivityStreamsServiceIsDisjointWith(other vocab.Type) bool {
- return typeservice.ServiceIsDisjointWith(other)
-}
-
-// ActivityStreamsTentativeAcceptIsDisjointWith returns true if TentativeAccept is
-// disjoint with the other's type.
-func ActivityStreamsTentativeAcceptIsDisjointWith(other vocab.Type) bool {
- return typetentativeaccept.TentativeAcceptIsDisjointWith(other)
-}
-
-// ActivityStreamsTentativeRejectIsDisjointWith returns true if TentativeReject is
-// disjoint with the other's type.
-func ActivityStreamsTentativeRejectIsDisjointWith(other vocab.Type) bool {
- return typetentativereject.TentativeRejectIsDisjointWith(other)
-}
-
-// ActivityStreamsTombstoneIsDisjointWith returns true if Tombstone is disjoint
-// with the other's type.
-func ActivityStreamsTombstoneIsDisjointWith(other vocab.Type) bool {
- return typetombstone.TombstoneIsDisjointWith(other)
-}
-
-// ActivityStreamsTravelIsDisjointWith returns true if Travel is disjoint with the
-// other's type.
-func ActivityStreamsTravelIsDisjointWith(other vocab.Type) bool {
- return typetravel.TravelIsDisjointWith(other)
-}
-
-// ActivityStreamsUndoIsDisjointWith returns true if Undo is disjoint with the
-// other's type.
-func ActivityStreamsUndoIsDisjointWith(other vocab.Type) bool {
- return typeundo.UndoIsDisjointWith(other)
-}
-
-// ActivityStreamsUpdateIsDisjointWith returns true if Update is disjoint with the
-// other's type.
-func ActivityStreamsUpdateIsDisjointWith(other vocab.Type) bool {
- return typeupdate.UpdateIsDisjointWith(other)
-}
-
-// ActivityStreamsVideoIsDisjointWith returns true if Video is disjoint with the
-// other's type.
-func ActivityStreamsVideoIsDisjointWith(other vocab.Type) bool {
- return typevideo.VideoIsDisjointWith(other)
-}
-
-// ActivityStreamsViewIsDisjointWith returns true if View is disjoint with the
-// other's type.
-func ActivityStreamsViewIsDisjointWith(other vocab.Type) bool {
- return typeview.ViewIsDisjointWith(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extendedby.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extendedby.go
deleted file mode 100644
index 735dc8c5e..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extendedby.go
+++ /dev/null
@@ -1,439 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept"
- typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity"
- typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add"
- typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce"
- typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application"
- typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive"
- typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article"
- typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio"
- typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block"
- typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection"
- typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage"
- typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create"
- typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete"
- typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike"
- typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document"
- typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event"
- typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag"
- typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow"
- typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group"
- typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore"
- typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image"
- typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity"
- typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite"
- typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join"
- typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave"
- typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like"
- typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link"
- typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen"
- typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention"
- typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move"
- typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note"
- typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object"
- typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer"
- typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection"
- typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage"
- typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization"
- typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page"
- typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person"
- typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place"
- typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile"
- typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question"
- typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read"
- typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject"
- typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship"
- typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove"
- typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service"
- typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept"
- typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject"
- typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone"
- typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel"
- typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo"
- typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update"
- typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video"
- typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// ActivityStreamsAcceptIsExtendedBy returns true if the other's type extends from
-// Accept. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsAcceptIsExtendedBy(other vocab.Type) bool {
- return typeaccept.AcceptIsExtendedBy(other)
-}
-
-// ActivityStreamsActivityIsExtendedBy returns true if the other's type extends
-// from Activity. Note that it returns false if the types are the same; see
-// the "IsOrExtends" variant instead.
-func ActivityStreamsActivityIsExtendedBy(other vocab.Type) bool {
- return typeactivity.ActivityIsExtendedBy(other)
-}
-
-// ActivityStreamsAddIsExtendedBy returns true if the other's type extends from
-// Add. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsAddIsExtendedBy(other vocab.Type) bool {
- return typeadd.AddIsExtendedBy(other)
-}
-
-// ActivityStreamsAnnounceIsExtendedBy returns true if the other's type extends
-// from Announce. Note that it returns false if the types are the same; see
-// the "IsOrExtends" variant instead.
-func ActivityStreamsAnnounceIsExtendedBy(other vocab.Type) bool {
- return typeannounce.AnnounceIsExtendedBy(other)
-}
-
-// ActivityStreamsApplicationIsExtendedBy returns true if the other's type extends
-// from Application. Note that it returns false if the types are the same; see
-// the "IsOrExtends" variant instead.
-func ActivityStreamsApplicationIsExtendedBy(other vocab.Type) bool {
- return typeapplication.ApplicationIsExtendedBy(other)
-}
-
-// ActivityStreamsArriveIsExtendedBy returns true if the other's type extends from
-// Arrive. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsArriveIsExtendedBy(other vocab.Type) bool {
- return typearrive.ArriveIsExtendedBy(other)
-}
-
-// ActivityStreamsArticleIsExtendedBy returns true if the other's type extends
-// from Article. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsArticleIsExtendedBy(other vocab.Type) bool {
- return typearticle.ArticleIsExtendedBy(other)
-}
-
-// ActivityStreamsAudioIsExtendedBy returns true if the other's type extends from
-// Audio. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsAudioIsExtendedBy(other vocab.Type) bool {
- return typeaudio.AudioIsExtendedBy(other)
-}
-
-// ActivityStreamsBlockIsExtendedBy returns true if the other's type extends from
-// Block. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsBlockIsExtendedBy(other vocab.Type) bool {
- return typeblock.BlockIsExtendedBy(other)
-}
-
-// ActivityStreamsCollectionIsExtendedBy returns true if the other's type extends
-// from Collection. Note that it returns false if the types are the same; see
-// the "IsOrExtends" variant instead.
-func ActivityStreamsCollectionIsExtendedBy(other vocab.Type) bool {
- return typecollection.CollectionIsExtendedBy(other)
-}
-
-// ActivityStreamsCollectionPageIsExtendedBy returns true if the other's type
-// extends from CollectionPage. Note that it returns false if the types are
-// the same; see the "IsOrExtends" variant instead.
-func ActivityStreamsCollectionPageIsExtendedBy(other vocab.Type) bool {
- return typecollectionpage.CollectionPageIsExtendedBy(other)
-}
-
-// ActivityStreamsCreateIsExtendedBy returns true if the other's type extends from
-// Create. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsCreateIsExtendedBy(other vocab.Type) bool {
- return typecreate.CreateIsExtendedBy(other)
-}
-
-// ActivityStreamsDeleteIsExtendedBy returns true if the other's type extends from
-// Delete. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsDeleteIsExtendedBy(other vocab.Type) bool {
- return typedelete.DeleteIsExtendedBy(other)
-}
-
-// ActivityStreamsDislikeIsExtendedBy returns true if the other's type extends
-// from Dislike. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsDislikeIsExtendedBy(other vocab.Type) bool {
- return typedislike.DislikeIsExtendedBy(other)
-}
-
-// ActivityStreamsDocumentIsExtendedBy returns true if the other's type extends
-// from Document. Note that it returns false if the types are the same; see
-// the "IsOrExtends" variant instead.
-func ActivityStreamsDocumentIsExtendedBy(other vocab.Type) bool {
- return typedocument.DocumentIsExtendedBy(other)
-}
-
-// ActivityStreamsEventIsExtendedBy returns true if the other's type extends from
-// Event. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsEventIsExtendedBy(other vocab.Type) bool {
- return typeevent.EventIsExtendedBy(other)
-}
-
-// ActivityStreamsFlagIsExtendedBy returns true if the other's type extends from
-// Flag. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsFlagIsExtendedBy(other vocab.Type) bool {
- return typeflag.FlagIsExtendedBy(other)
-}
-
-// ActivityStreamsFollowIsExtendedBy returns true if the other's type extends from
-// Follow. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsFollowIsExtendedBy(other vocab.Type) bool {
- return typefollow.FollowIsExtendedBy(other)
-}
-
-// ActivityStreamsGroupIsExtendedBy returns true if the other's type extends from
-// Group. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsGroupIsExtendedBy(other vocab.Type) bool {
- return typegroup.GroupIsExtendedBy(other)
-}
-
-// ActivityStreamsIgnoreIsExtendedBy returns true if the other's type extends from
-// Ignore. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsIgnoreIsExtendedBy(other vocab.Type) bool {
- return typeignore.IgnoreIsExtendedBy(other)
-}
-
-// ActivityStreamsImageIsExtendedBy returns true if the other's type extends from
-// Image. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsImageIsExtendedBy(other vocab.Type) bool {
- return typeimage.ImageIsExtendedBy(other)
-}
-
-// ActivityStreamsIntransitiveActivityIsExtendedBy returns true if the other's
-// type extends from IntransitiveActivity. Note that it returns false if the
-// types are the same; see the "IsOrExtends" variant instead.
-func ActivityStreamsIntransitiveActivityIsExtendedBy(other vocab.Type) bool {
- return typeintransitiveactivity.IntransitiveActivityIsExtendedBy(other)
-}
-
-// ActivityStreamsInviteIsExtendedBy returns true if the other's type extends from
-// Invite. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsInviteIsExtendedBy(other vocab.Type) bool {
- return typeinvite.InviteIsExtendedBy(other)
-}
-
-// ActivityStreamsJoinIsExtendedBy returns true if the other's type extends from
-// Join. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsJoinIsExtendedBy(other vocab.Type) bool {
- return typejoin.JoinIsExtendedBy(other)
-}
-
-// ActivityStreamsLeaveIsExtendedBy returns true if the other's type extends from
-// Leave. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsLeaveIsExtendedBy(other vocab.Type) bool {
- return typeleave.LeaveIsExtendedBy(other)
-}
-
-// ActivityStreamsLikeIsExtendedBy returns true if the other's type extends from
-// Like. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsLikeIsExtendedBy(other vocab.Type) bool {
- return typelike.LikeIsExtendedBy(other)
-}
-
-// ActivityStreamsLinkIsExtendedBy returns true if the other's type extends from
-// Link. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsLinkIsExtendedBy(other vocab.Type) bool {
- return typelink.LinkIsExtendedBy(other)
-}
-
-// ActivityStreamsListenIsExtendedBy returns true if the other's type extends from
-// Listen. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsListenIsExtendedBy(other vocab.Type) bool {
- return typelisten.ListenIsExtendedBy(other)
-}
-
-// ActivityStreamsMentionIsExtendedBy returns true if the other's type extends
-// from Mention. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsMentionIsExtendedBy(other vocab.Type) bool {
- return typemention.MentionIsExtendedBy(other)
-}
-
-// ActivityStreamsMoveIsExtendedBy returns true if the other's type extends from
-// Move. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsMoveIsExtendedBy(other vocab.Type) bool {
- return typemove.MoveIsExtendedBy(other)
-}
-
-// ActivityStreamsNoteIsExtendedBy returns true if the other's type extends from
-// Note. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsNoteIsExtendedBy(other vocab.Type) bool {
- return typenote.NoteIsExtendedBy(other)
-}
-
-// ActivityStreamsObjectIsExtendedBy returns true if the other's type extends from
-// Object. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsObjectIsExtendedBy(other vocab.Type) bool {
- return typeobject.ObjectIsExtendedBy(other)
-}
-
-// ActivityStreamsOfferIsExtendedBy returns true if the other's type extends from
-// Offer. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsOfferIsExtendedBy(other vocab.Type) bool {
- return typeoffer.OfferIsExtendedBy(other)
-}
-
-// ActivityStreamsOrderedCollectionIsExtendedBy returns true if the other's type
-// extends from OrderedCollection. Note that it returns false if the types are
-// the same; see the "IsOrExtends" variant instead.
-func ActivityStreamsOrderedCollectionIsExtendedBy(other vocab.Type) bool {
- return typeorderedcollection.OrderedCollectionIsExtendedBy(other)
-}
-
-// ActivityStreamsOrderedCollectionPageIsExtendedBy returns true if the other's
-// type extends from OrderedCollectionPage. Note that it returns false if the
-// types are the same; see the "IsOrExtends" variant instead.
-func ActivityStreamsOrderedCollectionPageIsExtendedBy(other vocab.Type) bool {
- return typeorderedcollectionpage.OrderedCollectionPageIsExtendedBy(other)
-}
-
-// ActivityStreamsOrganizationIsExtendedBy returns true if the other's type
-// extends from Organization. Note that it returns false if the types are the
-// same; see the "IsOrExtends" variant instead.
-func ActivityStreamsOrganizationIsExtendedBy(other vocab.Type) bool {
- return typeorganization.OrganizationIsExtendedBy(other)
-}
-
-// ActivityStreamsPageIsExtendedBy returns true if the other's type extends from
-// Page. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsPageIsExtendedBy(other vocab.Type) bool {
- return typepage.PageIsExtendedBy(other)
-}
-
-// ActivityStreamsPersonIsExtendedBy returns true if the other's type extends from
-// Person. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsPersonIsExtendedBy(other vocab.Type) bool {
- return typeperson.PersonIsExtendedBy(other)
-}
-
-// ActivityStreamsPlaceIsExtendedBy returns true if the other's type extends from
-// Place. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsPlaceIsExtendedBy(other vocab.Type) bool {
- return typeplace.PlaceIsExtendedBy(other)
-}
-
-// ActivityStreamsProfileIsExtendedBy returns true if the other's type extends
-// from Profile. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsProfileIsExtendedBy(other vocab.Type) bool {
- return typeprofile.ProfileIsExtendedBy(other)
-}
-
-// ActivityStreamsQuestionIsExtendedBy returns true if the other's type extends
-// from Question. Note that it returns false if the types are the same; see
-// the "IsOrExtends" variant instead.
-func ActivityStreamsQuestionIsExtendedBy(other vocab.Type) bool {
- return typequestion.QuestionIsExtendedBy(other)
-}
-
-// ActivityStreamsReadIsExtendedBy returns true if the other's type extends from
-// Read. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsReadIsExtendedBy(other vocab.Type) bool {
- return typeread.ReadIsExtendedBy(other)
-}
-
-// ActivityStreamsRejectIsExtendedBy returns true if the other's type extends from
-// Reject. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsRejectIsExtendedBy(other vocab.Type) bool {
- return typereject.RejectIsExtendedBy(other)
-}
-
-// ActivityStreamsRelationshipIsExtendedBy returns true if the other's type
-// extends from Relationship. Note that it returns false if the types are the
-// same; see the "IsOrExtends" variant instead.
-func ActivityStreamsRelationshipIsExtendedBy(other vocab.Type) bool {
- return typerelationship.RelationshipIsExtendedBy(other)
-}
-
-// ActivityStreamsRemoveIsExtendedBy returns true if the other's type extends from
-// Remove. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsRemoveIsExtendedBy(other vocab.Type) bool {
- return typeremove.RemoveIsExtendedBy(other)
-}
-
-// ActivityStreamsServiceIsExtendedBy returns true if the other's type extends
-// from Service. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsServiceIsExtendedBy(other vocab.Type) bool {
- return typeservice.ServiceIsExtendedBy(other)
-}
-
-// ActivityStreamsTentativeAcceptIsExtendedBy returns true if the other's type
-// extends from TentativeAccept. Note that it returns false if the types are
-// the same; see the "IsOrExtends" variant instead.
-func ActivityStreamsTentativeAcceptIsExtendedBy(other vocab.Type) bool {
- return typetentativeaccept.TentativeAcceptIsExtendedBy(other)
-}
-
-// ActivityStreamsTentativeRejectIsExtendedBy returns true if the other's type
-// extends from TentativeReject. Note that it returns false if the types are
-// the same; see the "IsOrExtends" variant instead.
-func ActivityStreamsTentativeRejectIsExtendedBy(other vocab.Type) bool {
- return typetentativereject.TentativeRejectIsExtendedBy(other)
-}
-
-// ActivityStreamsTombstoneIsExtendedBy returns true if the other's type extends
-// from Tombstone. Note that it returns false if the types are the same; see
-// the "IsOrExtends" variant instead.
-func ActivityStreamsTombstoneIsExtendedBy(other vocab.Type) bool {
- return typetombstone.TombstoneIsExtendedBy(other)
-}
-
-// ActivityStreamsTravelIsExtendedBy returns true if the other's type extends from
-// Travel. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsTravelIsExtendedBy(other vocab.Type) bool {
- return typetravel.TravelIsExtendedBy(other)
-}
-
-// ActivityStreamsUndoIsExtendedBy returns true if the other's type extends from
-// Undo. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsUndoIsExtendedBy(other vocab.Type) bool {
- return typeundo.UndoIsExtendedBy(other)
-}
-
-// ActivityStreamsUpdateIsExtendedBy returns true if the other's type extends from
-// Update. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsUpdateIsExtendedBy(other vocab.Type) bool {
- return typeupdate.UpdateIsExtendedBy(other)
-}
-
-// ActivityStreamsVideoIsExtendedBy returns true if the other's type extends from
-// Video. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsVideoIsExtendedBy(other vocab.Type) bool {
- return typevideo.VideoIsExtendedBy(other)
-}
-
-// ActivityStreamsViewIsExtendedBy returns true if the other's type extends from
-// View. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ActivityStreamsViewIsExtendedBy(other vocab.Type) bool {
- return typeview.ViewIsExtendedBy(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extends.go
deleted file mode 100644
index 381066e63..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extends.go
+++ /dev/null
@@ -1,385 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept"
- typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity"
- typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add"
- typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce"
- typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application"
- typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive"
- typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article"
- typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio"
- typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block"
- typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection"
- typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage"
- typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create"
- typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete"
- typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike"
- typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document"
- typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event"
- typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag"
- typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow"
- typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group"
- typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore"
- typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image"
- typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity"
- typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite"
- typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join"
- typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave"
- typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like"
- typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link"
- typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen"
- typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention"
- typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move"
- typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note"
- typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object"
- typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer"
- typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection"
- typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage"
- typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization"
- typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page"
- typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person"
- typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place"
- typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile"
- typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question"
- typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read"
- typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject"
- typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship"
- typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove"
- typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service"
- typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept"
- typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject"
- typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone"
- typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel"
- typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo"
- typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update"
- typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video"
- typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// ActivityStreamsActivityStreamsAcceptExtends returns true if Accept extends from
-// the other's type.
-func ActivityStreamsActivityStreamsAcceptExtends(other vocab.Type) bool {
- return typeaccept.ActivityStreamsAcceptExtends(other)
-}
-
-// ActivityStreamsActivityStreamsActivityExtends returns true if Activity extends
-// from the other's type.
-func ActivityStreamsActivityStreamsActivityExtends(other vocab.Type) bool {
- return typeactivity.ActivityStreamsActivityExtends(other)
-}
-
-// ActivityStreamsActivityStreamsAddExtends returns true if Add extends from the
-// other's type.
-func ActivityStreamsActivityStreamsAddExtends(other vocab.Type) bool {
- return typeadd.ActivityStreamsAddExtends(other)
-}
-
-// ActivityStreamsActivityStreamsAnnounceExtends returns true if Announce extends
-// from the other's type.
-func ActivityStreamsActivityStreamsAnnounceExtends(other vocab.Type) bool {
- return typeannounce.ActivityStreamsAnnounceExtends(other)
-}
-
-// ActivityStreamsActivityStreamsApplicationExtends returns true if Application
-// extends from the other's type.
-func ActivityStreamsActivityStreamsApplicationExtends(other vocab.Type) bool {
- return typeapplication.ActivityStreamsApplicationExtends(other)
-}
-
-// ActivityStreamsActivityStreamsArriveExtends returns true if Arrive extends from
-// the other's type.
-func ActivityStreamsActivityStreamsArriveExtends(other vocab.Type) bool {
- return typearrive.ActivityStreamsArriveExtends(other)
-}
-
-// ActivityStreamsActivityStreamsArticleExtends returns true if Article extends
-// from the other's type.
-func ActivityStreamsActivityStreamsArticleExtends(other vocab.Type) bool {
- return typearticle.ActivityStreamsArticleExtends(other)
-}
-
-// ActivityStreamsActivityStreamsAudioExtends returns true if Audio extends from
-// the other's type.
-func ActivityStreamsActivityStreamsAudioExtends(other vocab.Type) bool {
- return typeaudio.ActivityStreamsAudioExtends(other)
-}
-
-// ActivityStreamsActivityStreamsBlockExtends returns true if Block extends from
-// the other's type.
-func ActivityStreamsActivityStreamsBlockExtends(other vocab.Type) bool {
- return typeblock.ActivityStreamsBlockExtends(other)
-}
-
-// ActivityStreamsActivityStreamsCollectionExtends returns true if Collection
-// extends from the other's type.
-func ActivityStreamsActivityStreamsCollectionExtends(other vocab.Type) bool {
- return typecollection.ActivityStreamsCollectionExtends(other)
-}
-
-// ActivityStreamsActivityStreamsCollectionPageExtends returns true if
-// CollectionPage extends from the other's type.
-func ActivityStreamsActivityStreamsCollectionPageExtends(other vocab.Type) bool {
- return typecollectionpage.ActivityStreamsCollectionPageExtends(other)
-}
-
-// ActivityStreamsActivityStreamsCreateExtends returns true if Create extends from
-// the other's type.
-func ActivityStreamsActivityStreamsCreateExtends(other vocab.Type) bool {
- return typecreate.ActivityStreamsCreateExtends(other)
-}
-
-// ActivityStreamsActivityStreamsDeleteExtends returns true if Delete extends from
-// the other's type.
-func ActivityStreamsActivityStreamsDeleteExtends(other vocab.Type) bool {
- return typedelete.ActivityStreamsDeleteExtends(other)
-}
-
-// ActivityStreamsActivityStreamsDislikeExtends returns true if Dislike extends
-// from the other's type.
-func ActivityStreamsActivityStreamsDislikeExtends(other vocab.Type) bool {
- return typedislike.ActivityStreamsDislikeExtends(other)
-}
-
-// ActivityStreamsActivityStreamsDocumentExtends returns true if Document extends
-// from the other's type.
-func ActivityStreamsActivityStreamsDocumentExtends(other vocab.Type) bool {
- return typedocument.ActivityStreamsDocumentExtends(other)
-}
-
-// ActivityStreamsActivityStreamsEventExtends returns true if Event extends from
-// the other's type.
-func ActivityStreamsActivityStreamsEventExtends(other vocab.Type) bool {
- return typeevent.ActivityStreamsEventExtends(other)
-}
-
-// ActivityStreamsActivityStreamsFlagExtends returns true if Flag extends from the
-// other's type.
-func ActivityStreamsActivityStreamsFlagExtends(other vocab.Type) bool {
- return typeflag.ActivityStreamsFlagExtends(other)
-}
-
-// ActivityStreamsActivityStreamsFollowExtends returns true if Follow extends from
-// the other's type.
-func ActivityStreamsActivityStreamsFollowExtends(other vocab.Type) bool {
- return typefollow.ActivityStreamsFollowExtends(other)
-}
-
-// ActivityStreamsActivityStreamsGroupExtends returns true if Group extends from
-// the other's type.
-func ActivityStreamsActivityStreamsGroupExtends(other vocab.Type) bool {
- return typegroup.ActivityStreamsGroupExtends(other)
-}
-
-// ActivityStreamsActivityStreamsIgnoreExtends returns true if Ignore extends from
-// the other's type.
-func ActivityStreamsActivityStreamsIgnoreExtends(other vocab.Type) bool {
- return typeignore.ActivityStreamsIgnoreExtends(other)
-}
-
-// ActivityStreamsActivityStreamsImageExtends returns true if Image extends from
-// the other's type.
-func ActivityStreamsActivityStreamsImageExtends(other vocab.Type) bool {
- return typeimage.ActivityStreamsImageExtends(other)
-}
-
-// ActivityStreamsActivityStreamsIntransitiveActivityExtends returns true if
-// IntransitiveActivity extends from the other's type.
-func ActivityStreamsActivityStreamsIntransitiveActivityExtends(other vocab.Type) bool {
- return typeintransitiveactivity.ActivityStreamsIntransitiveActivityExtends(other)
-}
-
-// ActivityStreamsActivityStreamsInviteExtends returns true if Invite extends from
-// the other's type.
-func ActivityStreamsActivityStreamsInviteExtends(other vocab.Type) bool {
- return typeinvite.ActivityStreamsInviteExtends(other)
-}
-
-// ActivityStreamsActivityStreamsJoinExtends returns true if Join extends from the
-// other's type.
-func ActivityStreamsActivityStreamsJoinExtends(other vocab.Type) bool {
- return typejoin.ActivityStreamsJoinExtends(other)
-}
-
-// ActivityStreamsActivityStreamsLeaveExtends returns true if Leave extends from
-// the other's type.
-func ActivityStreamsActivityStreamsLeaveExtends(other vocab.Type) bool {
- return typeleave.ActivityStreamsLeaveExtends(other)
-}
-
-// ActivityStreamsActivityStreamsLikeExtends returns true if Like extends from the
-// other's type.
-func ActivityStreamsActivityStreamsLikeExtends(other vocab.Type) bool {
- return typelike.ActivityStreamsLikeExtends(other)
-}
-
-// ActivityStreamsActivityStreamsLinkExtends returns true if Link extends from the
-// other's type.
-func ActivityStreamsActivityStreamsLinkExtends(other vocab.Type) bool {
- return typelink.ActivityStreamsLinkExtends(other)
-}
-
-// ActivityStreamsActivityStreamsListenExtends returns true if Listen extends from
-// the other's type.
-func ActivityStreamsActivityStreamsListenExtends(other vocab.Type) bool {
- return typelisten.ActivityStreamsListenExtends(other)
-}
-
-// ActivityStreamsActivityStreamsMentionExtends returns true if Mention extends
-// from the other's type.
-func ActivityStreamsActivityStreamsMentionExtends(other vocab.Type) bool {
- return typemention.ActivityStreamsMentionExtends(other)
-}
-
-// ActivityStreamsActivityStreamsMoveExtends returns true if Move extends from the
-// other's type.
-func ActivityStreamsActivityStreamsMoveExtends(other vocab.Type) bool {
- return typemove.ActivityStreamsMoveExtends(other)
-}
-
-// ActivityStreamsActivityStreamsNoteExtends returns true if Note extends from the
-// other's type.
-func ActivityStreamsActivityStreamsNoteExtends(other vocab.Type) bool {
- return typenote.ActivityStreamsNoteExtends(other)
-}
-
-// ActivityStreamsActivityStreamsObjectExtends returns true if Object extends from
-// the other's type.
-func ActivityStreamsActivityStreamsObjectExtends(other vocab.Type) bool {
- return typeobject.ActivityStreamsObjectExtends(other)
-}
-
-// ActivityStreamsActivityStreamsOfferExtends returns true if Offer extends from
-// the other's type.
-func ActivityStreamsActivityStreamsOfferExtends(other vocab.Type) bool {
- return typeoffer.ActivityStreamsOfferExtends(other)
-}
-
-// ActivityStreamsActivityStreamsOrderedCollectionExtends returns true if
-// OrderedCollection extends from the other's type.
-func ActivityStreamsActivityStreamsOrderedCollectionExtends(other vocab.Type) bool {
- return typeorderedcollection.ActivityStreamsOrderedCollectionExtends(other)
-}
-
-// ActivityStreamsActivityStreamsOrderedCollectionPageExtends returns true if
-// OrderedCollectionPage extends from the other's type.
-func ActivityStreamsActivityStreamsOrderedCollectionPageExtends(other vocab.Type) bool {
- return typeorderedcollectionpage.ActivityStreamsOrderedCollectionPageExtends(other)
-}
-
-// ActivityStreamsActivityStreamsOrganizationExtends returns true if Organization
-// extends from the other's type.
-func ActivityStreamsActivityStreamsOrganizationExtends(other vocab.Type) bool {
- return typeorganization.ActivityStreamsOrganizationExtends(other)
-}
-
-// ActivityStreamsActivityStreamsPageExtends returns true if Page extends from the
-// other's type.
-func ActivityStreamsActivityStreamsPageExtends(other vocab.Type) bool {
- return typepage.ActivityStreamsPageExtends(other)
-}
-
-// ActivityStreamsActivityStreamsPersonExtends returns true if Person extends from
-// the other's type.
-func ActivityStreamsActivityStreamsPersonExtends(other vocab.Type) bool {
- return typeperson.ActivityStreamsPersonExtends(other)
-}
-
-// ActivityStreamsActivityStreamsPlaceExtends returns true if Place extends from
-// the other's type.
-func ActivityStreamsActivityStreamsPlaceExtends(other vocab.Type) bool {
- return typeplace.ActivityStreamsPlaceExtends(other)
-}
-
-// ActivityStreamsActivityStreamsProfileExtends returns true if Profile extends
-// from the other's type.
-func ActivityStreamsActivityStreamsProfileExtends(other vocab.Type) bool {
- return typeprofile.ActivityStreamsProfileExtends(other)
-}
-
-// ActivityStreamsActivityStreamsQuestionExtends returns true if Question extends
-// from the other's type.
-func ActivityStreamsActivityStreamsQuestionExtends(other vocab.Type) bool {
- return typequestion.ActivityStreamsQuestionExtends(other)
-}
-
-// ActivityStreamsActivityStreamsReadExtends returns true if Read extends from the
-// other's type.
-func ActivityStreamsActivityStreamsReadExtends(other vocab.Type) bool {
- return typeread.ActivityStreamsReadExtends(other)
-}
-
-// ActivityStreamsActivityStreamsRejectExtends returns true if Reject extends from
-// the other's type.
-func ActivityStreamsActivityStreamsRejectExtends(other vocab.Type) bool {
- return typereject.ActivityStreamsRejectExtends(other)
-}
-
-// ActivityStreamsActivityStreamsRelationshipExtends returns true if Relationship
-// extends from the other's type.
-func ActivityStreamsActivityStreamsRelationshipExtends(other vocab.Type) bool {
- return typerelationship.ActivityStreamsRelationshipExtends(other)
-}
-
-// ActivityStreamsActivityStreamsRemoveExtends returns true if Remove extends from
-// the other's type.
-func ActivityStreamsActivityStreamsRemoveExtends(other vocab.Type) bool {
- return typeremove.ActivityStreamsRemoveExtends(other)
-}
-
-// ActivityStreamsActivityStreamsServiceExtends returns true if Service extends
-// from the other's type.
-func ActivityStreamsActivityStreamsServiceExtends(other vocab.Type) bool {
- return typeservice.ActivityStreamsServiceExtends(other)
-}
-
-// ActivityStreamsActivityStreamsTentativeAcceptExtends returns true if
-// TentativeAccept extends from the other's type.
-func ActivityStreamsActivityStreamsTentativeAcceptExtends(other vocab.Type) bool {
- return typetentativeaccept.ActivityStreamsTentativeAcceptExtends(other)
-}
-
-// ActivityStreamsActivityStreamsTentativeRejectExtends returns true if
-// TentativeReject extends from the other's type.
-func ActivityStreamsActivityStreamsTentativeRejectExtends(other vocab.Type) bool {
- return typetentativereject.ActivityStreamsTentativeRejectExtends(other)
-}
-
-// ActivityStreamsActivityStreamsTombstoneExtends returns true if Tombstone
-// extends from the other's type.
-func ActivityStreamsActivityStreamsTombstoneExtends(other vocab.Type) bool {
- return typetombstone.ActivityStreamsTombstoneExtends(other)
-}
-
-// ActivityStreamsActivityStreamsTravelExtends returns true if Travel extends from
-// the other's type.
-func ActivityStreamsActivityStreamsTravelExtends(other vocab.Type) bool {
- return typetravel.ActivityStreamsTravelExtends(other)
-}
-
-// ActivityStreamsActivityStreamsUndoExtends returns true if Undo extends from the
-// other's type.
-func ActivityStreamsActivityStreamsUndoExtends(other vocab.Type) bool {
- return typeundo.ActivityStreamsUndoExtends(other)
-}
-
-// ActivityStreamsActivityStreamsUpdateExtends returns true if Update extends from
-// the other's type.
-func ActivityStreamsActivityStreamsUpdateExtends(other vocab.Type) bool {
- return typeupdate.ActivityStreamsUpdateExtends(other)
-}
-
-// ActivityStreamsActivityStreamsVideoExtends returns true if Video extends from
-// the other's type.
-func ActivityStreamsActivityStreamsVideoExtends(other vocab.Type) bool {
- return typevideo.ActivityStreamsVideoExtends(other)
-}
-
-// ActivityStreamsActivityStreamsViewExtends returns true if View extends from the
-// other's type.
-func ActivityStreamsActivityStreamsViewExtends(other vocab.Type) bool {
- return typeview.ActivityStreamsViewExtends(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_isorextends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_isorextends.go
deleted file mode 100644
index f748c26e6..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_isorextends.go
+++ /dev/null
@@ -1,388 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept"
- typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity"
- typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add"
- typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce"
- typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application"
- typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive"
- typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article"
- typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio"
- typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block"
- typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection"
- typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage"
- typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create"
- typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete"
- typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike"
- typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document"
- typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event"
- typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag"
- typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow"
- typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group"
- typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore"
- typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image"
- typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity"
- typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite"
- typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join"
- typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave"
- typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like"
- typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link"
- typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen"
- typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention"
- typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move"
- typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note"
- typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object"
- typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer"
- typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection"
- typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage"
- typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization"
- typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page"
- typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person"
- typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place"
- typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile"
- typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question"
- typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read"
- typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject"
- typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship"
- typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove"
- typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service"
- typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept"
- typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject"
- typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone"
- typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel"
- typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo"
- typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update"
- typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video"
- typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// IsOrExtendsActivityStreamsAccept returns true if the other provided type is the
-// Accept type or extends from the Accept type.
-func IsOrExtendsActivityStreamsAccept(other vocab.Type) bool {
- return typeaccept.IsOrExtendsAccept(other)
-}
-
-// IsOrExtendsActivityStreamsActivity returns true if the other provided type is
-// the Activity type or extends from the Activity type.
-func IsOrExtendsActivityStreamsActivity(other vocab.Type) bool {
- return typeactivity.IsOrExtendsActivity(other)
-}
-
-// IsOrExtendsActivityStreamsAdd returns true if the other provided type is the
-// Add type or extends from the Add type.
-func IsOrExtendsActivityStreamsAdd(other vocab.Type) bool {
- return typeadd.IsOrExtendsAdd(other)
-}
-
-// IsOrExtendsActivityStreamsAnnounce returns true if the other provided type is
-// the Announce type or extends from the Announce type.
-func IsOrExtendsActivityStreamsAnnounce(other vocab.Type) bool {
- return typeannounce.IsOrExtendsAnnounce(other)
-}
-
-// IsOrExtendsActivityStreamsApplication returns true if the other provided type
-// is the Application type or extends from the Application type.
-func IsOrExtendsActivityStreamsApplication(other vocab.Type) bool {
- return typeapplication.IsOrExtendsApplication(other)
-}
-
-// IsOrExtendsActivityStreamsArrive returns true if the other provided type is the
-// Arrive type or extends from the Arrive type.
-func IsOrExtendsActivityStreamsArrive(other vocab.Type) bool {
- return typearrive.IsOrExtendsArrive(other)
-}
-
-// IsOrExtendsActivityStreamsArticle returns true if the other provided type is
-// the Article type or extends from the Article type.
-func IsOrExtendsActivityStreamsArticle(other vocab.Type) bool {
- return typearticle.IsOrExtendsArticle(other)
-}
-
-// IsOrExtendsActivityStreamsAudio returns true if the other provided type is the
-// Audio type or extends from the Audio type.
-func IsOrExtendsActivityStreamsAudio(other vocab.Type) bool {
- return typeaudio.IsOrExtendsAudio(other)
-}
-
-// IsOrExtendsActivityStreamsBlock returns true if the other provided type is the
-// Block type or extends from the Block type.
-func IsOrExtendsActivityStreamsBlock(other vocab.Type) bool {
- return typeblock.IsOrExtendsBlock(other)
-}
-
-// IsOrExtendsActivityStreamsCollection returns true if the other provided type is
-// the Collection type or extends from the Collection type.
-func IsOrExtendsActivityStreamsCollection(other vocab.Type) bool {
- return typecollection.IsOrExtendsCollection(other)
-}
-
-// IsOrExtendsActivityStreamsCollectionPage returns true if the other provided
-// type is the CollectionPage type or extends from the CollectionPage type.
-func IsOrExtendsActivityStreamsCollectionPage(other vocab.Type) bool {
- return typecollectionpage.IsOrExtendsCollectionPage(other)
-}
-
-// IsOrExtendsActivityStreamsCreate returns true if the other provided type is the
-// Create type or extends from the Create type.
-func IsOrExtendsActivityStreamsCreate(other vocab.Type) bool {
- return typecreate.IsOrExtendsCreate(other)
-}
-
-// IsOrExtendsActivityStreamsDelete returns true if the other provided type is the
-// Delete type or extends from the Delete type.
-func IsOrExtendsActivityStreamsDelete(other vocab.Type) bool {
- return typedelete.IsOrExtendsDelete(other)
-}
-
-// IsOrExtendsActivityStreamsDislike returns true if the other provided type is
-// the Dislike type or extends from the Dislike type.
-func IsOrExtendsActivityStreamsDislike(other vocab.Type) bool {
- return typedislike.IsOrExtendsDislike(other)
-}
-
-// IsOrExtendsActivityStreamsDocument returns true if the other provided type is
-// the Document type or extends from the Document type.
-func IsOrExtendsActivityStreamsDocument(other vocab.Type) bool {
- return typedocument.IsOrExtendsDocument(other)
-}
-
-// IsOrExtendsActivityStreamsEvent returns true if the other provided type is the
-// Event type or extends from the Event type.
-func IsOrExtendsActivityStreamsEvent(other vocab.Type) bool {
- return typeevent.IsOrExtendsEvent(other)
-}
-
-// IsOrExtendsActivityStreamsFlag returns true if the other provided type is the
-// Flag type or extends from the Flag type.
-func IsOrExtendsActivityStreamsFlag(other vocab.Type) bool {
- return typeflag.IsOrExtendsFlag(other)
-}
-
-// IsOrExtendsActivityStreamsFollow returns true if the other provided type is the
-// Follow type or extends from the Follow type.
-func IsOrExtendsActivityStreamsFollow(other vocab.Type) bool {
- return typefollow.IsOrExtendsFollow(other)
-}
-
-// IsOrExtendsActivityStreamsGroup returns true if the other provided type is the
-// Group type or extends from the Group type.
-func IsOrExtendsActivityStreamsGroup(other vocab.Type) bool {
- return typegroup.IsOrExtendsGroup(other)
-}
-
-// IsOrExtendsActivityStreamsIgnore returns true if the other provided type is the
-// Ignore type or extends from the Ignore type.
-func IsOrExtendsActivityStreamsIgnore(other vocab.Type) bool {
- return typeignore.IsOrExtendsIgnore(other)
-}
-
-// IsOrExtendsActivityStreamsImage returns true if the other provided type is the
-// Image type or extends from the Image type.
-func IsOrExtendsActivityStreamsImage(other vocab.Type) bool {
- return typeimage.IsOrExtendsImage(other)
-}
-
-// IsOrExtendsActivityStreamsIntransitiveActivity returns true if the other
-// provided type is the IntransitiveActivity type or extends from the
-// IntransitiveActivity type.
-func IsOrExtendsActivityStreamsIntransitiveActivity(other vocab.Type) bool {
- return typeintransitiveactivity.IsOrExtendsIntransitiveActivity(other)
-}
-
-// IsOrExtendsActivityStreamsInvite returns true if the other provided type is the
-// Invite type or extends from the Invite type.
-func IsOrExtendsActivityStreamsInvite(other vocab.Type) bool {
- return typeinvite.IsOrExtendsInvite(other)
-}
-
-// IsOrExtendsActivityStreamsJoin returns true if the other provided type is the
-// Join type or extends from the Join type.
-func IsOrExtendsActivityStreamsJoin(other vocab.Type) bool {
- return typejoin.IsOrExtendsJoin(other)
-}
-
-// IsOrExtendsActivityStreamsLeave returns true if the other provided type is the
-// Leave type or extends from the Leave type.
-func IsOrExtendsActivityStreamsLeave(other vocab.Type) bool {
- return typeleave.IsOrExtendsLeave(other)
-}
-
-// IsOrExtendsActivityStreamsLike returns true if the other provided type is the
-// Like type or extends from the Like type.
-func IsOrExtendsActivityStreamsLike(other vocab.Type) bool {
- return typelike.IsOrExtendsLike(other)
-}
-
-// IsOrExtendsActivityStreamsLink returns true if the other provided type is the
-// Link type or extends from the Link type.
-func IsOrExtendsActivityStreamsLink(other vocab.Type) bool {
- return typelink.IsOrExtendsLink(other)
-}
-
-// IsOrExtendsActivityStreamsListen returns true if the other provided type is the
-// Listen type or extends from the Listen type.
-func IsOrExtendsActivityStreamsListen(other vocab.Type) bool {
- return typelisten.IsOrExtendsListen(other)
-}
-
-// IsOrExtendsActivityStreamsMention returns true if the other provided type is
-// the Mention type or extends from the Mention type.
-func IsOrExtendsActivityStreamsMention(other vocab.Type) bool {
- return typemention.IsOrExtendsMention(other)
-}
-
-// IsOrExtendsActivityStreamsMove returns true if the other provided type is the
-// Move type or extends from the Move type.
-func IsOrExtendsActivityStreamsMove(other vocab.Type) bool {
- return typemove.IsOrExtendsMove(other)
-}
-
-// IsOrExtendsActivityStreamsNote returns true if the other provided type is the
-// Note type or extends from the Note type.
-func IsOrExtendsActivityStreamsNote(other vocab.Type) bool {
- return typenote.IsOrExtendsNote(other)
-}
-
-// IsOrExtendsActivityStreamsObject returns true if the other provided type is the
-// Object type or extends from the Object type.
-func IsOrExtendsActivityStreamsObject(other vocab.Type) bool {
- return typeobject.IsOrExtendsObject(other)
-}
-
-// IsOrExtendsActivityStreamsOffer returns true if the other provided type is the
-// Offer type or extends from the Offer type.
-func IsOrExtendsActivityStreamsOffer(other vocab.Type) bool {
- return typeoffer.IsOrExtendsOffer(other)
-}
-
-// IsOrExtendsActivityStreamsOrderedCollection returns true if the other provided
-// type is the OrderedCollection type or extends from the OrderedCollection
-// type.
-func IsOrExtendsActivityStreamsOrderedCollection(other vocab.Type) bool {
- return typeorderedcollection.IsOrExtendsOrderedCollection(other)
-}
-
-// IsOrExtendsActivityStreamsOrderedCollectionPage returns true if the other
-// provided type is the OrderedCollectionPage type or extends from the
-// OrderedCollectionPage type.
-func IsOrExtendsActivityStreamsOrderedCollectionPage(other vocab.Type) bool {
- return typeorderedcollectionpage.IsOrExtendsOrderedCollectionPage(other)
-}
-
-// IsOrExtendsActivityStreamsOrganization returns true if the other provided type
-// is the Organization type or extends from the Organization type.
-func IsOrExtendsActivityStreamsOrganization(other vocab.Type) bool {
- return typeorganization.IsOrExtendsOrganization(other)
-}
-
-// IsOrExtendsActivityStreamsPage returns true if the other provided type is the
-// Page type or extends from the Page type.
-func IsOrExtendsActivityStreamsPage(other vocab.Type) bool {
- return typepage.IsOrExtendsPage(other)
-}
-
-// IsOrExtendsActivityStreamsPerson returns true if the other provided type is the
-// Person type or extends from the Person type.
-func IsOrExtendsActivityStreamsPerson(other vocab.Type) bool {
- return typeperson.IsOrExtendsPerson(other)
-}
-
-// IsOrExtendsActivityStreamsPlace returns true if the other provided type is the
-// Place type or extends from the Place type.
-func IsOrExtendsActivityStreamsPlace(other vocab.Type) bool {
- return typeplace.IsOrExtendsPlace(other)
-}
-
-// IsOrExtendsActivityStreamsProfile returns true if the other provided type is
-// the Profile type or extends from the Profile type.
-func IsOrExtendsActivityStreamsProfile(other vocab.Type) bool {
- return typeprofile.IsOrExtendsProfile(other)
-}
-
-// IsOrExtendsActivityStreamsQuestion returns true if the other provided type is
-// the Question type or extends from the Question type.
-func IsOrExtendsActivityStreamsQuestion(other vocab.Type) bool {
- return typequestion.IsOrExtendsQuestion(other)
-}
-
-// IsOrExtendsActivityStreamsRead returns true if the other provided type is the
-// Read type or extends from the Read type.
-func IsOrExtendsActivityStreamsRead(other vocab.Type) bool {
- return typeread.IsOrExtendsRead(other)
-}
-
-// IsOrExtendsActivityStreamsReject returns true if the other provided type is the
-// Reject type or extends from the Reject type.
-func IsOrExtendsActivityStreamsReject(other vocab.Type) bool {
- return typereject.IsOrExtendsReject(other)
-}
-
-// IsOrExtendsActivityStreamsRelationship returns true if the other provided type
-// is the Relationship type or extends from the Relationship type.
-func IsOrExtendsActivityStreamsRelationship(other vocab.Type) bool {
- return typerelationship.IsOrExtendsRelationship(other)
-}
-
-// IsOrExtendsActivityStreamsRemove returns true if the other provided type is the
-// Remove type or extends from the Remove type.
-func IsOrExtendsActivityStreamsRemove(other vocab.Type) bool {
- return typeremove.IsOrExtendsRemove(other)
-}
-
-// IsOrExtendsActivityStreamsService returns true if the other provided type is
-// the Service type or extends from the Service type.
-func IsOrExtendsActivityStreamsService(other vocab.Type) bool {
- return typeservice.IsOrExtendsService(other)
-}
-
-// IsOrExtendsActivityStreamsTentativeAccept returns true if the other provided
-// type is the TentativeAccept type or extends from the TentativeAccept type.
-func IsOrExtendsActivityStreamsTentativeAccept(other vocab.Type) bool {
- return typetentativeaccept.IsOrExtendsTentativeAccept(other)
-}
-
-// IsOrExtendsActivityStreamsTentativeReject returns true if the other provided
-// type is the TentativeReject type or extends from the TentativeReject type.
-func IsOrExtendsActivityStreamsTentativeReject(other vocab.Type) bool {
- return typetentativereject.IsOrExtendsTentativeReject(other)
-}
-
-// IsOrExtendsActivityStreamsTombstone returns true if the other provided type is
-// the Tombstone type or extends from the Tombstone type.
-func IsOrExtendsActivityStreamsTombstone(other vocab.Type) bool {
- return typetombstone.IsOrExtendsTombstone(other)
-}
-
-// IsOrExtendsActivityStreamsTravel returns true if the other provided type is the
-// Travel type or extends from the Travel type.
-func IsOrExtendsActivityStreamsTravel(other vocab.Type) bool {
- return typetravel.IsOrExtendsTravel(other)
-}
-
-// IsOrExtendsActivityStreamsUndo returns true if the other provided type is the
-// Undo type or extends from the Undo type.
-func IsOrExtendsActivityStreamsUndo(other vocab.Type) bool {
- return typeundo.IsOrExtendsUndo(other)
-}
-
-// IsOrExtendsActivityStreamsUpdate returns true if the other provided type is the
-// Update type or extends from the Update type.
-func IsOrExtendsActivityStreamsUpdate(other vocab.Type) bool {
- return typeupdate.IsOrExtendsUpdate(other)
-}
-
-// IsOrExtendsActivityStreamsVideo returns true if the other provided type is the
-// Video type or extends from the Video type.
-func IsOrExtendsActivityStreamsVideo(other vocab.Type) bool {
- return typevideo.IsOrExtendsVideo(other)
-}
-
-// IsOrExtendsActivityStreamsView returns true if the other provided type is the
-// View type or extends from the View type.
-func IsOrExtendsActivityStreamsView(other vocab.Type) bool {
- return typeview.IsOrExtendsView(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_property_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_property_constructors.go
deleted file mode 100644
index 07e3dd705..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_property_constructors.go
+++ /dev/null
@@ -1,511 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- propertyaccuracy "github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy"
- propertyactor "github.com/go-fed/activity/streams/impl/activitystreams/property_actor"
- propertyaltitude "github.com/go-fed/activity/streams/impl/activitystreams/property_altitude"
- propertyanyof "github.com/go-fed/activity/streams/impl/activitystreams/property_anyof"
- propertyattachment "github.com/go-fed/activity/streams/impl/activitystreams/property_attachment"
- propertyattributedto "github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto"
- propertyaudience "github.com/go-fed/activity/streams/impl/activitystreams/property_audience"
- propertybcc "github.com/go-fed/activity/streams/impl/activitystreams/property_bcc"
- propertybto "github.com/go-fed/activity/streams/impl/activitystreams/property_bto"
- propertycc "github.com/go-fed/activity/streams/impl/activitystreams/property_cc"
- propertyclosed "github.com/go-fed/activity/streams/impl/activitystreams/property_closed"
- propertycontent "github.com/go-fed/activity/streams/impl/activitystreams/property_content"
- propertycontext "github.com/go-fed/activity/streams/impl/activitystreams/property_context"
- propertycurrent "github.com/go-fed/activity/streams/impl/activitystreams/property_current"
- propertydeleted "github.com/go-fed/activity/streams/impl/activitystreams/property_deleted"
- propertydescribes "github.com/go-fed/activity/streams/impl/activitystreams/property_describes"
- propertyduration "github.com/go-fed/activity/streams/impl/activitystreams/property_duration"
- propertyendtime "github.com/go-fed/activity/streams/impl/activitystreams/property_endtime"
- propertyfirst "github.com/go-fed/activity/streams/impl/activitystreams/property_first"
- propertyfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_followers"
- propertyfollowing "github.com/go-fed/activity/streams/impl/activitystreams/property_following"
- propertyformertype "github.com/go-fed/activity/streams/impl/activitystreams/property_formertype"
- propertygenerator "github.com/go-fed/activity/streams/impl/activitystreams/property_generator"
- propertyheight "github.com/go-fed/activity/streams/impl/activitystreams/property_height"
- propertyhref "github.com/go-fed/activity/streams/impl/activitystreams/property_href"
- propertyhreflang "github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang"
- propertyicon "github.com/go-fed/activity/streams/impl/activitystreams/property_icon"
- propertyimage "github.com/go-fed/activity/streams/impl/activitystreams/property_image"
- propertyinbox "github.com/go-fed/activity/streams/impl/activitystreams/property_inbox"
- propertyinreplyto "github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto"
- propertyinstrument "github.com/go-fed/activity/streams/impl/activitystreams/property_instrument"
- propertyitems "github.com/go-fed/activity/streams/impl/activitystreams/property_items"
- propertylast "github.com/go-fed/activity/streams/impl/activitystreams/property_last"
- propertylatitude "github.com/go-fed/activity/streams/impl/activitystreams/property_latitude"
- propertyliked "github.com/go-fed/activity/streams/impl/activitystreams/property_liked"
- propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes"
- propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location"
- propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude"
- propertymanuallyapprovesfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
- propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype"
- propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name"
- propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next"
- propertyobject "github.com/go-fed/activity/streams/impl/activitystreams/property_object"
- propertyoneof "github.com/go-fed/activity/streams/impl/activitystreams/property_oneof"
- propertyordereditems "github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems"
- propertyorigin "github.com/go-fed/activity/streams/impl/activitystreams/property_origin"
- propertyoutbox "github.com/go-fed/activity/streams/impl/activitystreams/property_outbox"
- propertypartof "github.com/go-fed/activity/streams/impl/activitystreams/property_partof"
- propertypreferredusername "github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername"
- propertyprev "github.com/go-fed/activity/streams/impl/activitystreams/property_prev"
- propertypreview "github.com/go-fed/activity/streams/impl/activitystreams/property_preview"
- propertypublished "github.com/go-fed/activity/streams/impl/activitystreams/property_published"
- propertyradius "github.com/go-fed/activity/streams/impl/activitystreams/property_radius"
- propertyrel "github.com/go-fed/activity/streams/impl/activitystreams/property_rel"
- propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship"
- propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies"
- propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result"
- propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares"
- propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source"
- propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex"
- propertystarttime "github.com/go-fed/activity/streams/impl/activitystreams/property_starttime"
- propertystreams "github.com/go-fed/activity/streams/impl/activitystreams/property_streams"
- propertysubject "github.com/go-fed/activity/streams/impl/activitystreams/property_subject"
- propertysummary "github.com/go-fed/activity/streams/impl/activitystreams/property_summary"
- propertytag "github.com/go-fed/activity/streams/impl/activitystreams/property_tag"
- propertytarget "github.com/go-fed/activity/streams/impl/activitystreams/property_target"
- propertyto "github.com/go-fed/activity/streams/impl/activitystreams/property_to"
- propertytotalitems "github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems"
- propertyunits "github.com/go-fed/activity/streams/impl/activitystreams/property_units"
- propertyupdated "github.com/go-fed/activity/streams/impl/activitystreams/property_updated"
- propertyurl "github.com/go-fed/activity/streams/impl/activitystreams/property_url"
- propertywidth "github.com/go-fed/activity/streams/impl/activitystreams/property_width"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// NewActivityStreamsActivityStreamsAccuracyProperty creates a new
-// ActivityStreamsAccuracyProperty
-func NewActivityStreamsAccuracyProperty() vocab.ActivityStreamsAccuracyProperty {
- return propertyaccuracy.NewActivityStreamsAccuracyProperty()
-}
-
-// NewActivityStreamsActivityStreamsActorProperty creates a new
-// ActivityStreamsActorProperty
-func NewActivityStreamsActorProperty() vocab.ActivityStreamsActorProperty {
- return propertyactor.NewActivityStreamsActorProperty()
-}
-
-// NewActivityStreamsActivityStreamsAltitudeProperty creates a new
-// ActivityStreamsAltitudeProperty
-func NewActivityStreamsAltitudeProperty() vocab.ActivityStreamsAltitudeProperty {
- return propertyaltitude.NewActivityStreamsAltitudeProperty()
-}
-
-// NewActivityStreamsActivityStreamsAnyOfProperty creates a new
-// ActivityStreamsAnyOfProperty
-func NewActivityStreamsAnyOfProperty() vocab.ActivityStreamsAnyOfProperty {
- return propertyanyof.NewActivityStreamsAnyOfProperty()
-}
-
-// NewActivityStreamsActivityStreamsAttachmentProperty creates a new
-// ActivityStreamsAttachmentProperty
-func NewActivityStreamsAttachmentProperty() vocab.ActivityStreamsAttachmentProperty {
- return propertyattachment.NewActivityStreamsAttachmentProperty()
-}
-
-// NewActivityStreamsActivityStreamsAttributedToProperty creates a new
-// ActivityStreamsAttributedToProperty
-func NewActivityStreamsAttributedToProperty() vocab.ActivityStreamsAttributedToProperty {
- return propertyattributedto.NewActivityStreamsAttributedToProperty()
-}
-
-// NewActivityStreamsActivityStreamsAudienceProperty creates a new
-// ActivityStreamsAudienceProperty
-func NewActivityStreamsAudienceProperty() vocab.ActivityStreamsAudienceProperty {
- return propertyaudience.NewActivityStreamsAudienceProperty()
-}
-
-// NewActivityStreamsActivityStreamsBccProperty creates a new
-// ActivityStreamsBccProperty
-func NewActivityStreamsBccProperty() vocab.ActivityStreamsBccProperty {
- return propertybcc.NewActivityStreamsBccProperty()
-}
-
-// NewActivityStreamsActivityStreamsBtoProperty creates a new
-// ActivityStreamsBtoProperty
-func NewActivityStreamsBtoProperty() vocab.ActivityStreamsBtoProperty {
- return propertybto.NewActivityStreamsBtoProperty()
-}
-
-// NewActivityStreamsActivityStreamsCcProperty creates a new
-// ActivityStreamsCcProperty
-func NewActivityStreamsCcProperty() vocab.ActivityStreamsCcProperty {
- return propertycc.NewActivityStreamsCcProperty()
-}
-
-// NewActivityStreamsActivityStreamsClosedProperty creates a new
-// ActivityStreamsClosedProperty
-func NewActivityStreamsClosedProperty() vocab.ActivityStreamsClosedProperty {
- return propertyclosed.NewActivityStreamsClosedProperty()
-}
-
-// NewActivityStreamsActivityStreamsContentProperty creates a new
-// ActivityStreamsContentProperty
-func NewActivityStreamsContentProperty() vocab.ActivityStreamsContentProperty {
- return propertycontent.NewActivityStreamsContentProperty()
-}
-
-// NewActivityStreamsActivityStreamsContextProperty creates a new
-// ActivityStreamsContextProperty
-func NewActivityStreamsContextProperty() vocab.ActivityStreamsContextProperty {
- return propertycontext.NewActivityStreamsContextProperty()
-}
-
-// NewActivityStreamsActivityStreamsCurrentProperty creates a new
-// ActivityStreamsCurrentProperty
-func NewActivityStreamsCurrentProperty() vocab.ActivityStreamsCurrentProperty {
- return propertycurrent.NewActivityStreamsCurrentProperty()
-}
-
-// NewActivityStreamsActivityStreamsDeletedProperty creates a new
-// ActivityStreamsDeletedProperty
-func NewActivityStreamsDeletedProperty() vocab.ActivityStreamsDeletedProperty {
- return propertydeleted.NewActivityStreamsDeletedProperty()
-}
-
-// NewActivityStreamsActivityStreamsDescribesProperty creates a new
-// ActivityStreamsDescribesProperty
-func NewActivityStreamsDescribesProperty() vocab.ActivityStreamsDescribesProperty {
- return propertydescribes.NewActivityStreamsDescribesProperty()
-}
-
-// NewActivityStreamsActivityStreamsDurationProperty creates a new
-// ActivityStreamsDurationProperty
-func NewActivityStreamsDurationProperty() vocab.ActivityStreamsDurationProperty {
- return propertyduration.NewActivityStreamsDurationProperty()
-}
-
-// NewActivityStreamsActivityStreamsEndTimeProperty creates a new
-// ActivityStreamsEndTimeProperty
-func NewActivityStreamsEndTimeProperty() vocab.ActivityStreamsEndTimeProperty {
- return propertyendtime.NewActivityStreamsEndTimeProperty()
-}
-
-// NewActivityStreamsActivityStreamsFirstProperty creates a new
-// ActivityStreamsFirstProperty
-func NewActivityStreamsFirstProperty() vocab.ActivityStreamsFirstProperty {
- return propertyfirst.NewActivityStreamsFirstProperty()
-}
-
-// NewActivityStreamsActivityStreamsFollowersProperty creates a new
-// ActivityStreamsFollowersProperty
-func NewActivityStreamsFollowersProperty() vocab.ActivityStreamsFollowersProperty {
- return propertyfollowers.NewActivityStreamsFollowersProperty()
-}
-
-// NewActivityStreamsActivityStreamsFollowingProperty creates a new
-// ActivityStreamsFollowingProperty
-func NewActivityStreamsFollowingProperty() vocab.ActivityStreamsFollowingProperty {
- return propertyfollowing.NewActivityStreamsFollowingProperty()
-}
-
-// NewActivityStreamsActivityStreamsFormerTypeProperty creates a new
-// ActivityStreamsFormerTypeProperty
-func NewActivityStreamsFormerTypeProperty() vocab.ActivityStreamsFormerTypeProperty {
- return propertyformertype.NewActivityStreamsFormerTypeProperty()
-}
-
-// NewActivityStreamsActivityStreamsGeneratorProperty creates a new
-// ActivityStreamsGeneratorProperty
-func NewActivityStreamsGeneratorProperty() vocab.ActivityStreamsGeneratorProperty {
- return propertygenerator.NewActivityStreamsGeneratorProperty()
-}
-
-// NewActivityStreamsActivityStreamsHeightProperty creates a new
-// ActivityStreamsHeightProperty
-func NewActivityStreamsHeightProperty() vocab.ActivityStreamsHeightProperty {
- return propertyheight.NewActivityStreamsHeightProperty()
-}
-
-// NewActivityStreamsActivityStreamsHrefProperty creates a new
-// ActivityStreamsHrefProperty
-func NewActivityStreamsHrefProperty() vocab.ActivityStreamsHrefProperty {
- return propertyhref.NewActivityStreamsHrefProperty()
-}
-
-// NewActivityStreamsActivityStreamsHreflangProperty creates a new
-// ActivityStreamsHreflangProperty
-func NewActivityStreamsHreflangProperty() vocab.ActivityStreamsHreflangProperty {
- return propertyhreflang.NewActivityStreamsHreflangProperty()
-}
-
-// NewActivityStreamsActivityStreamsIconProperty creates a new
-// ActivityStreamsIconProperty
-func NewActivityStreamsIconProperty() vocab.ActivityStreamsIconProperty {
- return propertyicon.NewActivityStreamsIconProperty()
-}
-
-// NewActivityStreamsActivityStreamsImageProperty creates a new
-// ActivityStreamsImageProperty
-func NewActivityStreamsImageProperty() vocab.ActivityStreamsImageProperty {
- return propertyimage.NewActivityStreamsImageProperty()
-}
-
-// NewActivityStreamsActivityStreamsInReplyToProperty creates a new
-// ActivityStreamsInReplyToProperty
-func NewActivityStreamsInReplyToProperty() vocab.ActivityStreamsInReplyToProperty {
- return propertyinreplyto.NewActivityStreamsInReplyToProperty()
-}
-
-// NewActivityStreamsActivityStreamsInboxProperty creates a new
-// ActivityStreamsInboxProperty
-func NewActivityStreamsInboxProperty() vocab.ActivityStreamsInboxProperty {
- return propertyinbox.NewActivityStreamsInboxProperty()
-}
-
-// NewActivityStreamsActivityStreamsInstrumentProperty creates a new
-// ActivityStreamsInstrumentProperty
-func NewActivityStreamsInstrumentProperty() vocab.ActivityStreamsInstrumentProperty {
- return propertyinstrument.NewActivityStreamsInstrumentProperty()
-}
-
-// NewActivityStreamsActivityStreamsItemsProperty creates a new
-// ActivityStreamsItemsProperty
-func NewActivityStreamsItemsProperty() vocab.ActivityStreamsItemsProperty {
- return propertyitems.NewActivityStreamsItemsProperty()
-}
-
-// NewActivityStreamsActivityStreamsLastProperty creates a new
-// ActivityStreamsLastProperty
-func NewActivityStreamsLastProperty() vocab.ActivityStreamsLastProperty {
- return propertylast.NewActivityStreamsLastProperty()
-}
-
-// NewActivityStreamsActivityStreamsLatitudeProperty creates a new
-// ActivityStreamsLatitudeProperty
-func NewActivityStreamsLatitudeProperty() vocab.ActivityStreamsLatitudeProperty {
- return propertylatitude.NewActivityStreamsLatitudeProperty()
-}
-
-// NewActivityStreamsActivityStreamsLikedProperty creates a new
-// ActivityStreamsLikedProperty
-func NewActivityStreamsLikedProperty() vocab.ActivityStreamsLikedProperty {
- return propertyliked.NewActivityStreamsLikedProperty()
-}
-
-// NewActivityStreamsActivityStreamsLikesProperty creates a new
-// ActivityStreamsLikesProperty
-func NewActivityStreamsLikesProperty() vocab.ActivityStreamsLikesProperty {
- return propertylikes.NewActivityStreamsLikesProperty()
-}
-
-// NewActivityStreamsActivityStreamsLocationProperty creates a new
-// ActivityStreamsLocationProperty
-func NewActivityStreamsLocationProperty() vocab.ActivityStreamsLocationProperty {
- return propertylocation.NewActivityStreamsLocationProperty()
-}
-
-// NewActivityStreamsActivityStreamsLongitudeProperty creates a new
-// ActivityStreamsLongitudeProperty
-func NewActivityStreamsLongitudeProperty() vocab.ActivityStreamsLongitudeProperty {
- return propertylongitude.NewActivityStreamsLongitudeProperty()
-}
-
-// NewActivityStreamsActivityStreamsManuallyApprovesFollowersProperty creates a
-// new ActivityStreamsManuallyApprovesFollowersProperty
-func NewActivityStreamsManuallyApprovesFollowersProperty() vocab.ActivityStreamsManuallyApprovesFollowersProperty {
- return propertymanuallyapprovesfollowers.NewActivityStreamsManuallyApprovesFollowersProperty()
-}
-
-// NewActivityStreamsActivityStreamsMediaTypeProperty creates a new
-// ActivityStreamsMediaTypeProperty
-func NewActivityStreamsMediaTypeProperty() vocab.ActivityStreamsMediaTypeProperty {
- return propertymediatype.NewActivityStreamsMediaTypeProperty()
-}
-
-// NewActivityStreamsActivityStreamsNameProperty creates a new
-// ActivityStreamsNameProperty
-func NewActivityStreamsNameProperty() vocab.ActivityStreamsNameProperty {
- return propertyname.NewActivityStreamsNameProperty()
-}
-
-// NewActivityStreamsActivityStreamsNextProperty creates a new
-// ActivityStreamsNextProperty
-func NewActivityStreamsNextProperty() vocab.ActivityStreamsNextProperty {
- return propertynext.NewActivityStreamsNextProperty()
-}
-
-// NewActivityStreamsActivityStreamsObjectProperty creates a new
-// ActivityStreamsObjectProperty
-func NewActivityStreamsObjectProperty() vocab.ActivityStreamsObjectProperty {
- return propertyobject.NewActivityStreamsObjectProperty()
-}
-
-// NewActivityStreamsActivityStreamsOneOfProperty creates a new
-// ActivityStreamsOneOfProperty
-func NewActivityStreamsOneOfProperty() vocab.ActivityStreamsOneOfProperty {
- return propertyoneof.NewActivityStreamsOneOfProperty()
-}
-
-// NewActivityStreamsActivityStreamsOrderedItemsProperty creates a new
-// ActivityStreamsOrderedItemsProperty
-func NewActivityStreamsOrderedItemsProperty() vocab.ActivityStreamsOrderedItemsProperty {
- return propertyordereditems.NewActivityStreamsOrderedItemsProperty()
-}
-
-// NewActivityStreamsActivityStreamsOriginProperty creates a new
-// ActivityStreamsOriginProperty
-func NewActivityStreamsOriginProperty() vocab.ActivityStreamsOriginProperty {
- return propertyorigin.NewActivityStreamsOriginProperty()
-}
-
-// NewActivityStreamsActivityStreamsOutboxProperty creates a new
-// ActivityStreamsOutboxProperty
-func NewActivityStreamsOutboxProperty() vocab.ActivityStreamsOutboxProperty {
- return propertyoutbox.NewActivityStreamsOutboxProperty()
-}
-
-// NewActivityStreamsActivityStreamsPartOfProperty creates a new
-// ActivityStreamsPartOfProperty
-func NewActivityStreamsPartOfProperty() vocab.ActivityStreamsPartOfProperty {
- return propertypartof.NewActivityStreamsPartOfProperty()
-}
-
-// NewActivityStreamsActivityStreamsPreferredUsernameProperty creates a new
-// ActivityStreamsPreferredUsernameProperty
-func NewActivityStreamsPreferredUsernameProperty() vocab.ActivityStreamsPreferredUsernameProperty {
- return propertypreferredusername.NewActivityStreamsPreferredUsernameProperty()
-}
-
-// NewActivityStreamsActivityStreamsPrevProperty creates a new
-// ActivityStreamsPrevProperty
-func NewActivityStreamsPrevProperty() vocab.ActivityStreamsPrevProperty {
- return propertyprev.NewActivityStreamsPrevProperty()
-}
-
-// NewActivityStreamsActivityStreamsPreviewProperty creates a new
-// ActivityStreamsPreviewProperty
-func NewActivityStreamsPreviewProperty() vocab.ActivityStreamsPreviewProperty {
- return propertypreview.NewActivityStreamsPreviewProperty()
-}
-
-// NewActivityStreamsActivityStreamsPublishedProperty creates a new
-// ActivityStreamsPublishedProperty
-func NewActivityStreamsPublishedProperty() vocab.ActivityStreamsPublishedProperty {
- return propertypublished.NewActivityStreamsPublishedProperty()
-}
-
-// NewActivityStreamsActivityStreamsRadiusProperty creates a new
-// ActivityStreamsRadiusProperty
-func NewActivityStreamsRadiusProperty() vocab.ActivityStreamsRadiusProperty {
- return propertyradius.NewActivityStreamsRadiusProperty()
-}
-
-// NewActivityStreamsActivityStreamsRelProperty creates a new
-// ActivityStreamsRelProperty
-func NewActivityStreamsRelProperty() vocab.ActivityStreamsRelProperty {
- return propertyrel.NewActivityStreamsRelProperty()
-}
-
-// NewActivityStreamsActivityStreamsRelationshipProperty creates a new
-// ActivityStreamsRelationshipProperty
-func NewActivityStreamsRelationshipProperty() vocab.ActivityStreamsRelationshipProperty {
- return propertyrelationship.NewActivityStreamsRelationshipProperty()
-}
-
-// NewActivityStreamsActivityStreamsRepliesProperty creates a new
-// ActivityStreamsRepliesProperty
-func NewActivityStreamsRepliesProperty() vocab.ActivityStreamsRepliesProperty {
- return propertyreplies.NewActivityStreamsRepliesProperty()
-}
-
-// NewActivityStreamsActivityStreamsResultProperty creates a new
-// ActivityStreamsResultProperty
-func NewActivityStreamsResultProperty() vocab.ActivityStreamsResultProperty {
- return propertyresult.NewActivityStreamsResultProperty()
-}
-
-// NewActivityStreamsActivityStreamsSharesProperty creates a new
-// ActivityStreamsSharesProperty
-func NewActivityStreamsSharesProperty() vocab.ActivityStreamsSharesProperty {
- return propertyshares.NewActivityStreamsSharesProperty()
-}
-
-// NewActivityStreamsActivityStreamsSourceProperty creates a new
-// ActivityStreamsSourceProperty
-func NewActivityStreamsSourceProperty() vocab.ActivityStreamsSourceProperty {
- return propertysource.NewActivityStreamsSourceProperty()
-}
-
-// NewActivityStreamsActivityStreamsStartIndexProperty creates a new
-// ActivityStreamsStartIndexProperty
-func NewActivityStreamsStartIndexProperty() vocab.ActivityStreamsStartIndexProperty {
- return propertystartindex.NewActivityStreamsStartIndexProperty()
-}
-
-// NewActivityStreamsActivityStreamsStartTimeProperty creates a new
-// ActivityStreamsStartTimeProperty
-func NewActivityStreamsStartTimeProperty() vocab.ActivityStreamsStartTimeProperty {
- return propertystarttime.NewActivityStreamsStartTimeProperty()
-}
-
-// NewActivityStreamsActivityStreamsStreamsProperty creates a new
-// ActivityStreamsStreamsProperty
-func NewActivityStreamsStreamsProperty() vocab.ActivityStreamsStreamsProperty {
- return propertystreams.NewActivityStreamsStreamsProperty()
-}
-
-// NewActivityStreamsActivityStreamsSubjectProperty creates a new
-// ActivityStreamsSubjectProperty
-func NewActivityStreamsSubjectProperty() vocab.ActivityStreamsSubjectProperty {
- return propertysubject.NewActivityStreamsSubjectProperty()
-}
-
-// NewActivityStreamsActivityStreamsSummaryProperty creates a new
-// ActivityStreamsSummaryProperty
-func NewActivityStreamsSummaryProperty() vocab.ActivityStreamsSummaryProperty {
- return propertysummary.NewActivityStreamsSummaryProperty()
-}
-
-// NewActivityStreamsActivityStreamsTagProperty creates a new
-// ActivityStreamsTagProperty
-func NewActivityStreamsTagProperty() vocab.ActivityStreamsTagProperty {
- return propertytag.NewActivityStreamsTagProperty()
-}
-
-// NewActivityStreamsActivityStreamsTargetProperty creates a new
-// ActivityStreamsTargetProperty
-func NewActivityStreamsTargetProperty() vocab.ActivityStreamsTargetProperty {
- return propertytarget.NewActivityStreamsTargetProperty()
-}
-
-// NewActivityStreamsActivityStreamsToProperty creates a new
-// ActivityStreamsToProperty
-func NewActivityStreamsToProperty() vocab.ActivityStreamsToProperty {
- return propertyto.NewActivityStreamsToProperty()
-}
-
-// NewActivityStreamsActivityStreamsTotalItemsProperty creates a new
-// ActivityStreamsTotalItemsProperty
-func NewActivityStreamsTotalItemsProperty() vocab.ActivityStreamsTotalItemsProperty {
- return propertytotalitems.NewActivityStreamsTotalItemsProperty()
-}
-
-// NewActivityStreamsActivityStreamsUnitsProperty creates a new
-// ActivityStreamsUnitsProperty
-func NewActivityStreamsUnitsProperty() vocab.ActivityStreamsUnitsProperty {
- return propertyunits.NewActivityStreamsUnitsProperty()
-}
-
-// NewActivityStreamsActivityStreamsUpdatedProperty creates a new
-// ActivityStreamsUpdatedProperty
-func NewActivityStreamsUpdatedProperty() vocab.ActivityStreamsUpdatedProperty {
- return propertyupdated.NewActivityStreamsUpdatedProperty()
-}
-
-// NewActivityStreamsActivityStreamsUrlProperty creates a new
-// ActivityStreamsUrlProperty
-func NewActivityStreamsUrlProperty() vocab.ActivityStreamsUrlProperty {
- return propertyurl.NewActivityStreamsUrlProperty()
-}
-
-// NewActivityStreamsActivityStreamsWidthProperty creates a new
-// ActivityStreamsWidthProperty
-func NewActivityStreamsWidthProperty() vocab.ActivityStreamsWidthProperty {
- return propertywidth.NewActivityStreamsWidthProperty()
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_type_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_type_constructors.go
deleted file mode 100644
index e22d1c16a..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_type_constructors.go
+++ /dev/null
@@ -1,334 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_accept"
- typeactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_activity"
- typeadd "github.com/go-fed/activity/streams/impl/activitystreams/type_add"
- typeannounce "github.com/go-fed/activity/streams/impl/activitystreams/type_announce"
- typeapplication "github.com/go-fed/activity/streams/impl/activitystreams/type_application"
- typearrive "github.com/go-fed/activity/streams/impl/activitystreams/type_arrive"
- typearticle "github.com/go-fed/activity/streams/impl/activitystreams/type_article"
- typeaudio "github.com/go-fed/activity/streams/impl/activitystreams/type_audio"
- typeblock "github.com/go-fed/activity/streams/impl/activitystreams/type_block"
- typecollection "github.com/go-fed/activity/streams/impl/activitystreams/type_collection"
- typecollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_collectionpage"
- typecreate "github.com/go-fed/activity/streams/impl/activitystreams/type_create"
- typedelete "github.com/go-fed/activity/streams/impl/activitystreams/type_delete"
- typedislike "github.com/go-fed/activity/streams/impl/activitystreams/type_dislike"
- typedocument "github.com/go-fed/activity/streams/impl/activitystreams/type_document"
- typeevent "github.com/go-fed/activity/streams/impl/activitystreams/type_event"
- typeflag "github.com/go-fed/activity/streams/impl/activitystreams/type_flag"
- typefollow "github.com/go-fed/activity/streams/impl/activitystreams/type_follow"
- typegroup "github.com/go-fed/activity/streams/impl/activitystreams/type_group"
- typeignore "github.com/go-fed/activity/streams/impl/activitystreams/type_ignore"
- typeimage "github.com/go-fed/activity/streams/impl/activitystreams/type_image"
- typeintransitiveactivity "github.com/go-fed/activity/streams/impl/activitystreams/type_intransitiveactivity"
- typeinvite "github.com/go-fed/activity/streams/impl/activitystreams/type_invite"
- typejoin "github.com/go-fed/activity/streams/impl/activitystreams/type_join"
- typeleave "github.com/go-fed/activity/streams/impl/activitystreams/type_leave"
- typelike "github.com/go-fed/activity/streams/impl/activitystreams/type_like"
- typelink "github.com/go-fed/activity/streams/impl/activitystreams/type_link"
- typelisten "github.com/go-fed/activity/streams/impl/activitystreams/type_listen"
- typemention "github.com/go-fed/activity/streams/impl/activitystreams/type_mention"
- typemove "github.com/go-fed/activity/streams/impl/activitystreams/type_move"
- typenote "github.com/go-fed/activity/streams/impl/activitystreams/type_note"
- typeobject "github.com/go-fed/activity/streams/impl/activitystreams/type_object"
- typeoffer "github.com/go-fed/activity/streams/impl/activitystreams/type_offer"
- typeorderedcollection "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollection"
- typeorderedcollectionpage "github.com/go-fed/activity/streams/impl/activitystreams/type_orderedcollectionpage"
- typeorganization "github.com/go-fed/activity/streams/impl/activitystreams/type_organization"
- typepage "github.com/go-fed/activity/streams/impl/activitystreams/type_page"
- typeperson "github.com/go-fed/activity/streams/impl/activitystreams/type_person"
- typeplace "github.com/go-fed/activity/streams/impl/activitystreams/type_place"
- typeprofile "github.com/go-fed/activity/streams/impl/activitystreams/type_profile"
- typequestion "github.com/go-fed/activity/streams/impl/activitystreams/type_question"
- typeread "github.com/go-fed/activity/streams/impl/activitystreams/type_read"
- typereject "github.com/go-fed/activity/streams/impl/activitystreams/type_reject"
- typerelationship "github.com/go-fed/activity/streams/impl/activitystreams/type_relationship"
- typeremove "github.com/go-fed/activity/streams/impl/activitystreams/type_remove"
- typeservice "github.com/go-fed/activity/streams/impl/activitystreams/type_service"
- typetentativeaccept "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativeaccept"
- typetentativereject "github.com/go-fed/activity/streams/impl/activitystreams/type_tentativereject"
- typetombstone "github.com/go-fed/activity/streams/impl/activitystreams/type_tombstone"
- typetravel "github.com/go-fed/activity/streams/impl/activitystreams/type_travel"
- typeundo "github.com/go-fed/activity/streams/impl/activitystreams/type_undo"
- typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update"
- typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video"
- typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// NewActivityStreamsAccept creates a new ActivityStreamsAccept
-func NewActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return typeaccept.NewActivityStreamsAccept()
-}
-
-// NewActivityStreamsActivity creates a new ActivityStreamsActivity
-func NewActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return typeactivity.NewActivityStreamsActivity()
-}
-
-// NewActivityStreamsAdd creates a new ActivityStreamsAdd
-func NewActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return typeadd.NewActivityStreamsAdd()
-}
-
-// NewActivityStreamsAnnounce creates a new ActivityStreamsAnnounce
-func NewActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return typeannounce.NewActivityStreamsAnnounce()
-}
-
-// NewActivityStreamsApplication creates a new ActivityStreamsApplication
-func NewActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return typeapplication.NewActivityStreamsApplication()
-}
-
-// NewActivityStreamsArrive creates a new ActivityStreamsArrive
-func NewActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return typearrive.NewActivityStreamsArrive()
-}
-
-// NewActivityStreamsArticle creates a new ActivityStreamsArticle
-func NewActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return typearticle.NewActivityStreamsArticle()
-}
-
-// NewActivityStreamsAudio creates a new ActivityStreamsAudio
-func NewActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return typeaudio.NewActivityStreamsAudio()
-}
-
-// NewActivityStreamsBlock creates a new ActivityStreamsBlock
-func NewActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return typeblock.NewActivityStreamsBlock()
-}
-
-// NewActivityStreamsCollection creates a new ActivityStreamsCollection
-func NewActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return typecollection.NewActivityStreamsCollection()
-}
-
-// NewActivityStreamsCollectionPage creates a new ActivityStreamsCollectionPage
-func NewActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return typecollectionpage.NewActivityStreamsCollectionPage()
-}
-
-// NewActivityStreamsCreate creates a new ActivityStreamsCreate
-func NewActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return typecreate.NewActivityStreamsCreate()
-}
-
-// NewActivityStreamsDelete creates a new ActivityStreamsDelete
-func NewActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return typedelete.NewActivityStreamsDelete()
-}
-
-// NewActivityStreamsDislike creates a new ActivityStreamsDislike
-func NewActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return typedislike.NewActivityStreamsDislike()
-}
-
-// NewActivityStreamsDocument creates a new ActivityStreamsDocument
-func NewActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return typedocument.NewActivityStreamsDocument()
-}
-
-// NewActivityStreamsEvent creates a new ActivityStreamsEvent
-func NewActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return typeevent.NewActivityStreamsEvent()
-}
-
-// NewActivityStreamsFlag creates a new ActivityStreamsFlag
-func NewActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return typeflag.NewActivityStreamsFlag()
-}
-
-// NewActivityStreamsFollow creates a new ActivityStreamsFollow
-func NewActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return typefollow.NewActivityStreamsFollow()
-}
-
-// NewActivityStreamsGroup creates a new ActivityStreamsGroup
-func NewActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return typegroup.NewActivityStreamsGroup()
-}
-
-// NewActivityStreamsIgnore creates a new ActivityStreamsIgnore
-func NewActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return typeignore.NewActivityStreamsIgnore()
-}
-
-// NewActivityStreamsImage creates a new ActivityStreamsImage
-func NewActivityStreamsImage() vocab.ActivityStreamsImage {
- return typeimage.NewActivityStreamsImage()
-}
-
-// NewActivityStreamsIntransitiveActivity creates a new
-// ActivityStreamsIntransitiveActivity
-func NewActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return typeintransitiveactivity.NewActivityStreamsIntransitiveActivity()
-}
-
-// NewActivityStreamsInvite creates a new ActivityStreamsInvite
-func NewActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return typeinvite.NewActivityStreamsInvite()
-}
-
-// NewActivityStreamsJoin creates a new ActivityStreamsJoin
-func NewActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return typejoin.NewActivityStreamsJoin()
-}
-
-// NewActivityStreamsLeave creates a new ActivityStreamsLeave
-func NewActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return typeleave.NewActivityStreamsLeave()
-}
-
-// NewActivityStreamsLike creates a new ActivityStreamsLike
-func NewActivityStreamsLike() vocab.ActivityStreamsLike {
- return typelike.NewActivityStreamsLike()
-}
-
-// NewActivityStreamsLink creates a new ActivityStreamsLink
-func NewActivityStreamsLink() vocab.ActivityStreamsLink {
- return typelink.NewActivityStreamsLink()
-}
-
-// NewActivityStreamsListen creates a new ActivityStreamsListen
-func NewActivityStreamsListen() vocab.ActivityStreamsListen {
- return typelisten.NewActivityStreamsListen()
-}
-
-// NewActivityStreamsMention creates a new ActivityStreamsMention
-func NewActivityStreamsMention() vocab.ActivityStreamsMention {
- return typemention.NewActivityStreamsMention()
-}
-
-// NewActivityStreamsMove creates a new ActivityStreamsMove
-func NewActivityStreamsMove() vocab.ActivityStreamsMove {
- return typemove.NewActivityStreamsMove()
-}
-
-// NewActivityStreamsNote creates a new ActivityStreamsNote
-func NewActivityStreamsNote() vocab.ActivityStreamsNote {
- return typenote.NewActivityStreamsNote()
-}
-
-// NewActivityStreamsObject creates a new ActivityStreamsObject
-func NewActivityStreamsObject() vocab.ActivityStreamsObject {
- return typeobject.NewActivityStreamsObject()
-}
-
-// NewActivityStreamsOffer creates a new ActivityStreamsOffer
-func NewActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return typeoffer.NewActivityStreamsOffer()
-}
-
-// NewActivityStreamsOrderedCollection creates a new
-// ActivityStreamsOrderedCollection
-func NewActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return typeorderedcollection.NewActivityStreamsOrderedCollection()
-}
-
-// NewActivityStreamsOrderedCollectionPage creates a new
-// ActivityStreamsOrderedCollectionPage
-func NewActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return typeorderedcollectionpage.NewActivityStreamsOrderedCollectionPage()
-}
-
-// NewActivityStreamsOrganization creates a new ActivityStreamsOrganization
-func NewActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return typeorganization.NewActivityStreamsOrganization()
-}
-
-// NewActivityStreamsPage creates a new ActivityStreamsPage
-func NewActivityStreamsPage() vocab.ActivityStreamsPage {
- return typepage.NewActivityStreamsPage()
-}
-
-// NewActivityStreamsPerson creates a new ActivityStreamsPerson
-func NewActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return typeperson.NewActivityStreamsPerson()
-}
-
-// NewActivityStreamsPlace creates a new ActivityStreamsPlace
-func NewActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return typeplace.NewActivityStreamsPlace()
-}
-
-// NewActivityStreamsProfile creates a new ActivityStreamsProfile
-func NewActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return typeprofile.NewActivityStreamsProfile()
-}
-
-// NewActivityStreamsQuestion creates a new ActivityStreamsQuestion
-func NewActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return typequestion.NewActivityStreamsQuestion()
-}
-
-// NewActivityStreamsRead creates a new ActivityStreamsRead
-func NewActivityStreamsRead() vocab.ActivityStreamsRead {
- return typeread.NewActivityStreamsRead()
-}
-
-// NewActivityStreamsReject creates a new ActivityStreamsReject
-func NewActivityStreamsReject() vocab.ActivityStreamsReject {
- return typereject.NewActivityStreamsReject()
-}
-
-// NewActivityStreamsRelationship creates a new ActivityStreamsRelationship
-func NewActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return typerelationship.NewActivityStreamsRelationship()
-}
-
-// NewActivityStreamsRemove creates a new ActivityStreamsRemove
-func NewActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return typeremove.NewActivityStreamsRemove()
-}
-
-// NewActivityStreamsService creates a new ActivityStreamsService
-func NewActivityStreamsService() vocab.ActivityStreamsService {
- return typeservice.NewActivityStreamsService()
-}
-
-// NewActivityStreamsTentativeAccept creates a new ActivityStreamsTentativeAccept
-func NewActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return typetentativeaccept.NewActivityStreamsTentativeAccept()
-}
-
-// NewActivityStreamsTentativeReject creates a new ActivityStreamsTentativeReject
-func NewActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return typetentativereject.NewActivityStreamsTentativeReject()
-}
-
-// NewActivityStreamsTombstone creates a new ActivityStreamsTombstone
-func NewActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return typetombstone.NewActivityStreamsTombstone()
-}
-
-// NewActivityStreamsTravel creates a new ActivityStreamsTravel
-func NewActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return typetravel.NewActivityStreamsTravel()
-}
-
-// NewActivityStreamsUndo creates a new ActivityStreamsUndo
-func NewActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return typeundo.NewActivityStreamsUndo()
-}
-
-// NewActivityStreamsUpdate creates a new ActivityStreamsUpdate
-func NewActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return typeupdate.NewActivityStreamsUpdate()
-}
-
-// NewActivityStreamsVideo creates a new ActivityStreamsVideo
-func NewActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return typevideo.NewActivityStreamsVideo()
-}
-
-// NewActivityStreamsView creates a new ActivityStreamsView
-func NewActivityStreamsView() vocab.ActivityStreamsView {
- return typeview.NewActivityStreamsView()
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_disjoint.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_disjoint.go
deleted file mode 100644
index d6299f7ae..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_disjoint.go
+++ /dev/null
@@ -1,49 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
- typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
- typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
- typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
- typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
- typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// ForgeFedBranchIsDisjointWith returns true if Branch is disjoint with the
-// other's type.
-func ForgeFedBranchIsDisjointWith(other vocab.Type) bool {
- return typebranch.BranchIsDisjointWith(other)
-}
-
-// ForgeFedCommitIsDisjointWith returns true if Commit is disjoint with the
-// other's type.
-func ForgeFedCommitIsDisjointWith(other vocab.Type) bool {
- return typecommit.CommitIsDisjointWith(other)
-}
-
-// ForgeFedPushIsDisjointWith returns true if Push is disjoint with the other's
-// type.
-func ForgeFedPushIsDisjointWith(other vocab.Type) bool {
- return typepush.PushIsDisjointWith(other)
-}
-
-// ForgeFedRepositoryIsDisjointWith returns true if Repository is disjoint with
-// the other's type.
-func ForgeFedRepositoryIsDisjointWith(other vocab.Type) bool {
- return typerepository.RepositoryIsDisjointWith(other)
-}
-
-// ForgeFedTicketIsDisjointWith returns true if Ticket is disjoint with the
-// other's type.
-func ForgeFedTicketIsDisjointWith(other vocab.Type) bool {
- return typeticket.TicketIsDisjointWith(other)
-}
-
-// ForgeFedTicketDependencyIsDisjointWith returns true if TicketDependency is
-// disjoint with the other's type.
-func ForgeFedTicketDependencyIsDisjointWith(other vocab.Type) bool {
- return typeticketdependency.TicketDependencyIsDisjointWith(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extendedby.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extendedby.go
deleted file mode 100644
index 2a70d7ad2..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extendedby.go
+++ /dev/null
@@ -1,55 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
- typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
- typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
- typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
- typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
- typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// ForgeFedBranchIsExtendedBy returns true if the other's type extends from
-// Branch. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ForgeFedBranchIsExtendedBy(other vocab.Type) bool {
- return typebranch.BranchIsExtendedBy(other)
-}
-
-// ForgeFedCommitIsExtendedBy returns true if the other's type extends from
-// Commit. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ForgeFedCommitIsExtendedBy(other vocab.Type) bool {
- return typecommit.CommitIsExtendedBy(other)
-}
-
-// ForgeFedPushIsExtendedBy returns true if the other's type extends from Push.
-// Note that it returns false if the types are the same; see the "IsOrExtends"
-// variant instead.
-func ForgeFedPushIsExtendedBy(other vocab.Type) bool {
- return typepush.PushIsExtendedBy(other)
-}
-
-// ForgeFedRepositoryIsExtendedBy returns true if the other's type extends from
-// Repository. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ForgeFedRepositoryIsExtendedBy(other vocab.Type) bool {
- return typerepository.RepositoryIsExtendedBy(other)
-}
-
-// ForgeFedTicketIsExtendedBy returns true if the other's type extends from
-// Ticket. Note that it returns false if the types are the same; see the
-// "IsOrExtends" variant instead.
-func ForgeFedTicketIsExtendedBy(other vocab.Type) bool {
- return typeticket.TicketIsExtendedBy(other)
-}
-
-// ForgeFedTicketDependencyIsExtendedBy returns true if the other's type extends
-// from TicketDependency. Note that it returns false if the types are the
-// same; see the "IsOrExtends" variant instead.
-func ForgeFedTicketDependencyIsExtendedBy(other vocab.Type) bool {
- return typeticketdependency.TicketDependencyIsExtendedBy(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extends.go
deleted file mode 100644
index 2118ba375..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extends.go
+++ /dev/null
@@ -1,48 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
- typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
- typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
- typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
- typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
- typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// ForgeFedForgeFedBranchExtends returns true if Branch extends from the other's
-// type.
-func ForgeFedForgeFedBranchExtends(other vocab.Type) bool {
- return typebranch.ForgeFedBranchExtends(other)
-}
-
-// ForgeFedForgeFedCommitExtends returns true if Commit extends from the other's
-// type.
-func ForgeFedForgeFedCommitExtends(other vocab.Type) bool {
- return typecommit.ForgeFedCommitExtends(other)
-}
-
-// ForgeFedForgeFedPushExtends returns true if Push extends from the other's type.
-func ForgeFedForgeFedPushExtends(other vocab.Type) bool {
- return typepush.ForgeFedPushExtends(other)
-}
-
-// ForgeFedForgeFedRepositoryExtends returns true if Repository extends from the
-// other's type.
-func ForgeFedForgeFedRepositoryExtends(other vocab.Type) bool {
- return typerepository.ForgeFedRepositoryExtends(other)
-}
-
-// ForgeFedForgeFedTicketExtends returns true if Ticket extends from the other's
-// type.
-func ForgeFedForgeFedTicketExtends(other vocab.Type) bool {
- return typeticket.ForgeFedTicketExtends(other)
-}
-
-// ForgeFedForgeFedTicketDependencyExtends returns true if TicketDependency
-// extends from the other's type.
-func ForgeFedForgeFedTicketDependencyExtends(other vocab.Type) bool {
- return typeticketdependency.ForgeFedTicketDependencyExtends(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_isorextends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_isorextends.go
deleted file mode 100644
index 96d445505..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_isorextends.go
+++ /dev/null
@@ -1,49 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
- typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
- typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
- typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
- typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
- typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// IsOrExtendsForgeFedBranch returns true if the other provided type is the Branch
-// type or extends from the Branch type.
-func IsOrExtendsForgeFedBranch(other vocab.Type) bool {
- return typebranch.IsOrExtendsBranch(other)
-}
-
-// IsOrExtendsForgeFedCommit returns true if the other provided type is the Commit
-// type or extends from the Commit type.
-func IsOrExtendsForgeFedCommit(other vocab.Type) bool {
- return typecommit.IsOrExtendsCommit(other)
-}
-
-// IsOrExtendsForgeFedPush returns true if the other provided type is the Push
-// type or extends from the Push type.
-func IsOrExtendsForgeFedPush(other vocab.Type) bool {
- return typepush.IsOrExtendsPush(other)
-}
-
-// IsOrExtendsForgeFedRepository returns true if the other provided type is the
-// Repository type or extends from the Repository type.
-func IsOrExtendsForgeFedRepository(other vocab.Type) bool {
- return typerepository.IsOrExtendsRepository(other)
-}
-
-// IsOrExtendsForgeFedTicket returns true if the other provided type is the Ticket
-// type or extends from the Ticket type.
-func IsOrExtendsForgeFedTicket(other vocab.Type) bool {
- return typeticket.IsOrExtendsTicket(other)
-}
-
-// IsOrExtendsForgeFedTicketDependency returns true if the other provided type is
-// the TicketDependency type or extends from the TicketDependency type.
-func IsOrExtendsForgeFedTicketDependency(other vocab.Type) bool {
- return typeticketdependency.IsOrExtendsTicketDependency(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_property_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_property_constructors.go
deleted file mode 100644
index d8921cbb1..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_property_constructors.go
+++ /dev/null
@@ -1,126 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto"
- propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed"
- propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby"
- propertydependants "github.com/go-fed/activity/streams/impl/forgefed/property_dependants"
- propertydependedby "github.com/go-fed/activity/streams/impl/forgefed/property_dependedby"
- propertydependencies "github.com/go-fed/activity/streams/impl/forgefed/property_dependencies"
- propertydependson "github.com/go-fed/activity/streams/impl/forgefed/property_dependson"
- propertydescription "github.com/go-fed/activity/streams/impl/forgefed/property_description"
- propertyearlyitems "github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems"
- propertyfilesadded "github.com/go-fed/activity/streams/impl/forgefed/property_filesadded"
- propertyfilesmodified "github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified"
- propertyfilesremoved "github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved"
- propertyforks "github.com/go-fed/activity/streams/impl/forgefed/property_forks"
- propertyhash "github.com/go-fed/activity/streams/impl/forgefed/property_hash"
- propertyisresolved "github.com/go-fed/activity/streams/impl/forgefed/property_isresolved"
- propertyref "github.com/go-fed/activity/streams/impl/forgefed/property_ref"
- propertyteam "github.com/go-fed/activity/streams/impl/forgefed/property_team"
- propertyticketstrackedby "github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby"
- propertytracksticketsfor "github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// NewForgeFedForgeFedAssignedToProperty creates a new ForgeFedAssignedToProperty
-func NewForgeFedAssignedToProperty() vocab.ForgeFedAssignedToProperty {
- return propertyassignedto.NewForgeFedAssignedToProperty()
-}
-
-// NewForgeFedForgeFedCommittedProperty creates a new ForgeFedCommittedProperty
-func NewForgeFedCommittedProperty() vocab.ForgeFedCommittedProperty {
- return propertycommitted.NewForgeFedCommittedProperty()
-}
-
-// NewForgeFedForgeFedCommittedByProperty creates a new ForgeFedCommittedByProperty
-func NewForgeFedCommittedByProperty() vocab.ForgeFedCommittedByProperty {
- return propertycommittedby.NewForgeFedCommittedByProperty()
-}
-
-// NewForgeFedForgeFedDependantsProperty creates a new ForgeFedDependantsProperty
-func NewForgeFedDependantsProperty() vocab.ForgeFedDependantsProperty {
- return propertydependants.NewForgeFedDependantsProperty()
-}
-
-// NewForgeFedForgeFedDependedByProperty creates a new ForgeFedDependedByProperty
-func NewForgeFedDependedByProperty() vocab.ForgeFedDependedByProperty {
- return propertydependedby.NewForgeFedDependedByProperty()
-}
-
-// NewForgeFedForgeFedDependenciesProperty creates a new
-// ForgeFedDependenciesProperty
-func NewForgeFedDependenciesProperty() vocab.ForgeFedDependenciesProperty {
- return propertydependencies.NewForgeFedDependenciesProperty()
-}
-
-// NewForgeFedForgeFedDependsOnProperty creates a new ForgeFedDependsOnProperty
-func NewForgeFedDependsOnProperty() vocab.ForgeFedDependsOnProperty {
- return propertydependson.NewForgeFedDependsOnProperty()
-}
-
-// NewForgeFedForgeFedDescriptionProperty creates a new ForgeFedDescriptionProperty
-func NewForgeFedDescriptionProperty() vocab.ForgeFedDescriptionProperty {
- return propertydescription.NewForgeFedDescriptionProperty()
-}
-
-// NewForgeFedForgeFedEarlyItemsProperty creates a new ForgeFedEarlyItemsProperty
-func NewForgeFedEarlyItemsProperty() vocab.ForgeFedEarlyItemsProperty {
- return propertyearlyitems.NewForgeFedEarlyItemsProperty()
-}
-
-// NewForgeFedForgeFedFilesAddedProperty creates a new ForgeFedFilesAddedProperty
-func NewForgeFedFilesAddedProperty() vocab.ForgeFedFilesAddedProperty {
- return propertyfilesadded.NewForgeFedFilesAddedProperty()
-}
-
-// NewForgeFedForgeFedFilesModifiedProperty creates a new
-// ForgeFedFilesModifiedProperty
-func NewForgeFedFilesModifiedProperty() vocab.ForgeFedFilesModifiedProperty {
- return propertyfilesmodified.NewForgeFedFilesModifiedProperty()
-}
-
-// NewForgeFedForgeFedFilesRemovedProperty creates a new
-// ForgeFedFilesRemovedProperty
-func NewForgeFedFilesRemovedProperty() vocab.ForgeFedFilesRemovedProperty {
- return propertyfilesremoved.NewForgeFedFilesRemovedProperty()
-}
-
-// NewForgeFedForgeFedForksProperty creates a new ForgeFedForksProperty
-func NewForgeFedForksProperty() vocab.ForgeFedForksProperty {
- return propertyforks.NewForgeFedForksProperty()
-}
-
-// NewForgeFedForgeFedHashProperty creates a new ForgeFedHashProperty
-func NewForgeFedHashProperty() vocab.ForgeFedHashProperty {
- return propertyhash.NewForgeFedHashProperty()
-}
-
-// NewForgeFedForgeFedIsResolvedProperty creates a new ForgeFedIsResolvedProperty
-func NewForgeFedIsResolvedProperty() vocab.ForgeFedIsResolvedProperty {
- return propertyisresolved.NewForgeFedIsResolvedProperty()
-}
-
-// NewForgeFedForgeFedRefProperty creates a new ForgeFedRefProperty
-func NewForgeFedRefProperty() vocab.ForgeFedRefProperty {
- return propertyref.NewForgeFedRefProperty()
-}
-
-// NewForgeFedForgeFedTeamProperty creates a new ForgeFedTeamProperty
-func NewForgeFedTeamProperty() vocab.ForgeFedTeamProperty {
- return propertyteam.NewForgeFedTeamProperty()
-}
-
-// NewForgeFedForgeFedTicketsTrackedByProperty creates a new
-// ForgeFedTicketsTrackedByProperty
-func NewForgeFedTicketsTrackedByProperty() vocab.ForgeFedTicketsTrackedByProperty {
- return propertyticketstrackedby.NewForgeFedTicketsTrackedByProperty()
-}
-
-// NewForgeFedForgeFedTracksTicketsForProperty creates a new
-// ForgeFedTracksTicketsForProperty
-func NewForgeFedTracksTicketsForProperty() vocab.ForgeFedTracksTicketsForProperty {
- return propertytracksticketsfor.NewForgeFedTracksTicketsForProperty()
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_type_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_type_constructors.go
deleted file mode 100644
index 78b59500f..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_type_constructors.go
+++ /dev/null
@@ -1,43 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
- typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
- typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
- typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
- typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
- typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// NewForgeFedBranch creates a new ForgeFedBranch
-func NewForgeFedBranch() vocab.ForgeFedBranch {
- return typebranch.NewForgeFedBranch()
-}
-
-// NewForgeFedCommit creates a new ForgeFedCommit
-func NewForgeFedCommit() vocab.ForgeFedCommit {
- return typecommit.NewForgeFedCommit()
-}
-
-// NewForgeFedPush creates a new ForgeFedPush
-func NewForgeFedPush() vocab.ForgeFedPush {
- return typepush.NewForgeFedPush()
-}
-
-// NewForgeFedRepository creates a new ForgeFedRepository
-func NewForgeFedRepository() vocab.ForgeFedRepository {
- return typerepository.NewForgeFedRepository()
-}
-
-// NewForgeFedTicket creates a new ForgeFedTicket
-func NewForgeFedTicket() vocab.ForgeFedTicket {
- return typeticket.NewForgeFedTicket()
-}
-
-// NewForgeFedTicketDependency creates a new ForgeFedTicketDependency
-func NewForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return typeticketdependency.NewForgeFedTicketDependency()
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_jsonld_property_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_jsonld_property_constructors.go
deleted file mode 100644
index 9f9f9d137..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_jsonld_property_constructors.go
+++ /dev/null
@@ -1,19 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- propertyid "github.com/go-fed/activity/streams/impl/jsonld/property_id"
- propertytype "github.com/go-fed/activity/streams/impl/jsonld/property_type"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// NewJSONLDJSONLDTypeProperty creates a new JSONLDTypeProperty
-func NewJSONLDTypeProperty() vocab.JSONLDTypeProperty {
- return propertytype.NewJSONLDTypeProperty()
-}
-
-// NewJSONLDJSONLDIdProperty creates a new JSONLDIdProperty
-func NewJSONLDIdProperty() vocab.JSONLDIdProperty {
- return propertyid.NewJSONLDIdProperty()
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_disjoint.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_disjoint.go
deleted file mode 100644
index 144f27fa2..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_disjoint.go
+++ /dev/null
@@ -1,20 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji"
- typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// TootEmojiIsDisjointWith returns true if Emoji is disjoint with the other's type.
-func TootEmojiIsDisjointWith(other vocab.Type) bool {
- return typeemoji.EmojiIsDisjointWith(other)
-}
-
-// TootIdentityProofIsDisjointWith returns true if IdentityProof is disjoint with
-// the other's type.
-func TootIdentityProofIsDisjointWith(other vocab.Type) bool {
- return typeidentityproof.IdentityProofIsDisjointWith(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extendedby.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extendedby.go
deleted file mode 100644
index 8327ce103..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extendedby.go
+++ /dev/null
@@ -1,23 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji"
- typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// TootEmojiIsExtendedBy returns true if the other's type extends from Emoji. Note
-// that it returns false if the types are the same; see the "IsOrExtends"
-// variant instead.
-func TootEmojiIsExtendedBy(other vocab.Type) bool {
- return typeemoji.EmojiIsExtendedBy(other)
-}
-
-// TootIdentityProofIsExtendedBy returns true if the other's type extends from
-// IdentityProof. Note that it returns false if the types are the same; see
-// the "IsOrExtends" variant instead.
-func TootIdentityProofIsExtendedBy(other vocab.Type) bool {
- return typeidentityproof.IdentityProofIsExtendedBy(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extends.go
deleted file mode 100644
index bef71b49c..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extends.go
+++ /dev/null
@@ -1,20 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji"
- typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// TootTootEmojiExtends returns true if Emoji extends from the other's type.
-func TootTootEmojiExtends(other vocab.Type) bool {
- return typeemoji.TootEmojiExtends(other)
-}
-
-// TootTootIdentityProofExtends returns true if IdentityProof extends from the
-// other's type.
-func TootTootIdentityProofExtends(other vocab.Type) bool {
- return typeidentityproof.TootIdentityProofExtends(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_isorextends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_isorextends.go
deleted file mode 100644
index 6890c5987..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_isorextends.go
+++ /dev/null
@@ -1,21 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji"
- typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// IsOrExtendsTootEmoji returns true if the other provided type is the Emoji type
-// or extends from the Emoji type.
-func IsOrExtendsTootEmoji(other vocab.Type) bool {
- return typeemoji.IsOrExtendsEmoji(other)
-}
-
-// IsOrExtendsTootIdentityProof returns true if the other provided type is the
-// IdentityProof type or extends from the IdentityProof type.
-func IsOrExtendsTootIdentityProof(other vocab.Type) bool {
- return typeidentityproof.IsOrExtendsIdentityProof(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_property_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_property_constructors.go
deleted file mode 100644
index b93c20c76..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_property_constructors.go
+++ /dev/null
@@ -1,44 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- propertyblurhash "github.com/go-fed/activity/streams/impl/toot/property_blurhash"
- propertydiscoverable "github.com/go-fed/activity/streams/impl/toot/property_discoverable"
- propertyfeatured "github.com/go-fed/activity/streams/impl/toot/property_featured"
- propertysignaturealgorithm "github.com/go-fed/activity/streams/impl/toot/property_signaturealgorithm"
- propertysignaturevalue "github.com/go-fed/activity/streams/impl/toot/property_signaturevalue"
- propertyvoterscount "github.com/go-fed/activity/streams/impl/toot/property_voterscount"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// NewTootTootBlurhashProperty creates a new TootBlurhashProperty
-func NewTootBlurhashProperty() vocab.TootBlurhashProperty {
- return propertyblurhash.NewTootBlurhashProperty()
-}
-
-// NewTootTootDiscoverableProperty creates a new TootDiscoverableProperty
-func NewTootDiscoverableProperty() vocab.TootDiscoverableProperty {
- return propertydiscoverable.NewTootDiscoverableProperty()
-}
-
-// NewTootTootFeaturedProperty creates a new TootFeaturedProperty
-func NewTootFeaturedProperty() vocab.TootFeaturedProperty {
- return propertyfeatured.NewTootFeaturedProperty()
-}
-
-// NewTootTootSignatureAlgorithmProperty creates a new
-// TootSignatureAlgorithmProperty
-func NewTootSignatureAlgorithmProperty() vocab.TootSignatureAlgorithmProperty {
- return propertysignaturealgorithm.NewTootSignatureAlgorithmProperty()
-}
-
-// NewTootTootSignatureValueProperty creates a new TootSignatureValueProperty
-func NewTootSignatureValueProperty() vocab.TootSignatureValueProperty {
- return propertysignaturevalue.NewTootSignatureValueProperty()
-}
-
-// NewTootTootVotersCountProperty creates a new TootVotersCountProperty
-func NewTootVotersCountProperty() vocab.TootVotersCountProperty {
- return propertyvoterscount.NewTootVotersCountProperty()
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_type_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_type_constructors.go
deleted file mode 100644
index 77ba41c71..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_type_constructors.go
+++ /dev/null
@@ -1,19 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typeemoji "github.com/go-fed/activity/streams/impl/toot/type_emoji"
- typeidentityproof "github.com/go-fed/activity/streams/impl/toot/type_identityproof"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// NewTootEmoji creates a new TootEmoji
-func NewTootEmoji() vocab.TootEmoji {
- return typeemoji.NewTootEmoji()
-}
-
-// NewTootIdentityProof creates a new TootIdentityProof
-func NewTootIdentityProof() vocab.TootIdentityProof {
- return typeidentityproof.NewTootIdentityProof()
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go
deleted file mode 100644
index c8a34164d..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// W3IDSecurityV1PublicKeyIsDisjointWith returns true if PublicKey is disjoint
-// with the other's type.
-func W3IDSecurityV1PublicKeyIsDisjointWith(other vocab.Type) bool {
- return typepublickey.PublicKeyIsDisjointWith(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go
deleted file mode 100644
index 301544e69..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go
+++ /dev/null
@@ -1,15 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// W3IDSecurityV1PublicKeyIsExtendedBy returns true if the other's type extends
-// from PublicKey. Note that it returns false if the types are the same; see
-// the "IsOrExtends" variant instead.
-func W3IDSecurityV1PublicKeyIsExtendedBy(other vocab.Type) bool {
- return typepublickey.PublicKeyIsExtendedBy(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extends.go
deleted file mode 100644
index 54d3f6625..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extends.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// W3IDSecurityV1W3IDSecurityV1PublicKeyExtends returns true if PublicKey extends
-// from the other's type.
-func W3IDSecurityV1W3IDSecurityV1PublicKeyExtends(other vocab.Type) bool {
- return typepublickey.W3IDSecurityV1PublicKeyExtends(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go
deleted file mode 100644
index 028ba96a1..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go
+++ /dev/null
@@ -1,14 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// IsOrExtendsW3IDSecurityV1PublicKey returns true if the other provided type is
-// the PublicKey type or extends from the PublicKey type.
-func IsOrExtendsW3IDSecurityV1PublicKey(other vocab.Type) bool {
- return typepublickey.IsOrExtendsPublicKey(other)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go
deleted file mode 100644
index e35820921..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go
+++ /dev/null
@@ -1,28 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- propertyowner "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_owner"
- propertypublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickey"
- propertypublickeypem "github.com/go-fed/activity/streams/impl/w3idsecurityv1/property_publickeypem"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// NewW3IDSecurityV1W3IDSecurityV1OwnerProperty creates a new
-// W3IDSecurityV1OwnerProperty
-func NewW3IDSecurityV1OwnerProperty() vocab.W3IDSecurityV1OwnerProperty {
- return propertyowner.NewW3IDSecurityV1OwnerProperty()
-}
-
-// NewW3IDSecurityV1W3IDSecurityV1PublicKeyProperty creates a new
-// W3IDSecurityV1PublicKeyProperty
-func NewW3IDSecurityV1PublicKeyProperty() vocab.W3IDSecurityV1PublicKeyProperty {
- return propertypublickey.NewW3IDSecurityV1PublicKeyProperty()
-}
-
-// NewW3IDSecurityV1W3IDSecurityV1PublicKeyPemProperty creates a new
-// W3IDSecurityV1PublicKeyPemProperty
-func NewW3IDSecurityV1PublicKeyPemProperty() vocab.W3IDSecurityV1PublicKeyPemProperty {
- return propertypublickeypem.NewW3IDSecurityV1PublicKeyPemProperty()
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go
deleted file mode 100644
index dbea0dc4e..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go
+++ /dev/null
@@ -1,13 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- typepublickey "github.com/go-fed/activity/streams/impl/w3idsecurityv1/type_publickey"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// NewW3IDSecurityV1PublicKey creates a new W3IDSecurityV1PublicKey
-func NewW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKey {
- return typepublickey.NewW3IDSecurityV1PublicKey()
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_resolver_utils.go b/vendor/github.com/go-fed/activity/streams/gen_resolver_utils.go
deleted file mode 100644
index 30eae3f78..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_resolver_utils.go
+++ /dev/null
@@ -1,244 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- "context"
- "errors"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// ErrNoCallbackMatch indicates a Resolver could not match the ActivityStreams value to a callback function.
-var ErrNoCallbackMatch error = errors.New("activity stream did not match the callback function")
-
-// ErrUnhandledType indicates that an ActivityStreams value has a type that is not handled by the code that has been generated.
-var ErrUnhandledType error = errors.New("activity stream did not match any known types")
-
-// ErrPredicateUnmatched indicates that a predicate is accepting a type or interface that does not match an ActivityStreams value's type or interface.
-var ErrPredicateUnmatched error = errors.New("activity stream did not match type demanded by predicate")
-
-// errCannotTypeAssertType indicates that the 'type' property returned by the ActivityStreams value cannot be type-asserted to its interface form.
-var errCannotTypeAssertType error = errors.New("activity stream type cannot be asserted to its interface")
-
-// ActivityStreamsInterface represents any ActivityStream value code-generated by
-// go-fed or compatible with the generated interfaces.
-type ActivityStreamsInterface interface {
- // GetTypeName returns the ActiivtyStreams value's type.
- GetTypeName() string
- // VocabularyURI returns the vocabulary's URI as a string.
- VocabularyURI() string
-}
-
-// Resolver represents any TypeResolver.
-type Resolver interface {
- // Resolve will attempt to resolve an untyped ActivityStreams value into a
- // Go concrete type.
- Resolve(ctx context.Context, o ActivityStreamsInterface) error
-}
-
-// IsUnmatchedErr is true when the error indicates that a Resolver was
-// unsuccessful due to the ActivityStreams value not matching its callbacks or
-// predicates.
-func IsUnmatchedErr(err error) bool {
- return err == ErrPredicateUnmatched || err == ErrUnhandledType || err == ErrNoCallbackMatch
-}
-
-// ToType attempts to resolve the generic JSON map into a Type.
-func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err error) {
- var r *JSONResolver
- r, err = NewJSONResolver(func(ctx context.Context, i vocab.ActivityStreamsAccept) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsActivity) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsAdd) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsAnnounce) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsApplication) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsArrive) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsArticle) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsAudio) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsBlock) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ForgeFedBranch) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsCollection) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsCollectionPage) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ForgeFedCommit) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsCreate) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsDelete) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsDislike) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsDocument) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.TootEmoji) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsEvent) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsFlag) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsFollow) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsGroup) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.TootIdentityProof) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsIgnore) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsImage) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsIntransitiveActivity) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsInvite) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsJoin) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsLeave) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsLike) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsLink) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsListen) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsMention) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsMove) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsNote) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsObject) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsOffer) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsOrderedCollection) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsOrderedCollectionPage) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsOrganization) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsPage) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsPerson) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsPlace) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsProfile) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.W3IDSecurityV1PublicKey) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ForgeFedPush) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsQuestion) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsRead) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsReject) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsRelationship) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsRemove) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ForgeFedRepository) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsService) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsTentativeAccept) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsTentativeReject) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ForgeFedTicket) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ForgeFedTicketDependency) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsTombstone) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsTravel) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsUndo) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsUpdate) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsVideo) error {
- t = i
- return nil
- }, func(ctx context.Context, i vocab.ActivityStreamsView) error {
- t = i
- return nil
- })
- if err != nil {
- return
- }
- err = r.Resolve(c, m)
- return
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_type_predicated_resolver.go b/vendor/github.com/go-fed/activity/streams/gen_type_predicated_resolver.go
deleted file mode 100644
index 6199b6ca1..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_type_predicated_resolver.go
+++ /dev/null
@@ -1,881 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- "context"
- "errors"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// TypePredicatedResolver resolves ActivityStreams values if the value satisfies a
-// predicate condition based on its type.
-type TypePredicatedResolver struct {
- delegate Resolver
- predicate interface{}
-}
-
-// NewTypePredicatedResolver creates a new Resolver that applies a predicate to an
-// ActivityStreams value to determine whether to Resolve or not. The
-// ActivityStreams value's type is examined to determine if the predicate can
-// apply itself to the value. This guarantees the predicate will receive a
-// concrete value whose underlying ActivityStreams type matches the concrete
-// interface name. The predicate function must be of the form:
-//
-// func(context.Context, ) (bool, error)
-//
-// where TypeInterface is the code-generated interface for an ActivityStreams
-// type. An error is returned if the predicate does not match this signature.
-func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypePredicatedResolver, error) {
- // The predicate must satisfy one known predicate function signature, or else we will generate a runtime error instead of silently fail.
- switch predicate.(type) {
- case func(context.Context, vocab.ActivityStreamsAccept) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsActivity) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsAdd) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsApplication) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsArrive) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsArticle) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsAudio) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsBlock) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ForgeFedBranch) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsCollection) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsCollectionPage) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ForgeFedCommit) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsCreate) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsDelete) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsDislike) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsDocument) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.TootEmoji) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsEvent) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsFlag) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsFollow) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsGroup) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.TootIdentityProof) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsIgnore) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsImage) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsInvite) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsJoin) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsLeave) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsLike) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsLink) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsListen) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsMention) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsMove) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsNote) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsObject) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOffer) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOrderedCollection) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOrganization) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsPage) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsPerson) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsPlace) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsProfile) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ForgeFedPush) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsQuestion) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsRead) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsReject) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsRelationship) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsRemove) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ForgeFedRepository) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsService) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTentativeReject) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ForgeFedTicket) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ForgeFedTicketDependency) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTombstone) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTravel) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsUndo) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsUpdate) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsVideo) (bool, error):
- // Do nothing, this predicate has a correct signature.
- case func(context.Context, vocab.ActivityStreamsView) (bool, error):
- // Do nothing, this predicate has a correct signature.
- default:
- return nil, errors.New("the predicate function is of the wrong signature and would never be called")
- }
- return &TypePredicatedResolver{
- delegate: delegate,
- predicate: predicate,
- }, nil
-}
-
-// Apply uses a predicate to determine whether to resolve the ActivityStreams
-// value. The predicate's signature is matched with the ActivityStreams
-// value's type. This strictly assures that the predicate will only be passed
-// ActivityStream objects whose type matches its interface. Returns an error
-// if the ActivityStreams type does not match the predicate, is not a type
-// handled by the generated code, or the resolver returns an error. Returns
-// true if the predicate returned true.
-func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsInterface) (bool, error) {
- var predicatePasses bool
- var err error
- if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Accept" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAccept) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsAccept); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Activity" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsActivity) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsActivity); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Add" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAdd) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsAdd); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsAnnounce); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsApplication) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsApplication); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Arrive" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsArrive) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsArrive); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Article" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsArticle) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsArticle); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAudio) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsAudio); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Block" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsBlock) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsBlock); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Branch" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedBranch) (bool, error)); ok {
- if v, ok := o.(vocab.ForgeFedBranch); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollection) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsCollection); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "CollectionPage" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollectionPage) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Commit" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedCommit) (bool, error)); ok {
- if v, ok := o.(vocab.ForgeFedCommit); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCreate) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsCreate); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Delete" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDelete) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsDelete); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Dislike" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDislike) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsDislike); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Document" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDocument) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsDocument); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Emoji" {
- if fn, ok := this.predicate.(func(context.Context, vocab.TootEmoji) (bool, error)); ok {
- if v, ok := o.(vocab.TootEmoji); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Event" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsEvent) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsEvent); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Flag" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsFlag) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsFlag); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Follow" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsFollow) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsFollow); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Group" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsGroup) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsGroup); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "IdentityProof" {
- if fn, ok := this.predicate.(func(context.Context, vocab.TootIdentityProof) (bool, error)); ok {
- if v, ok := o.(vocab.TootIdentityProof); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Ignore" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsIgnore) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsIgnore); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Image" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsImage) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsImage); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "IntransitiveActivity" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Invite" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsInvite) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsInvite); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Join" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsJoin) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsJoin); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Leave" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLeave) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsLeave); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLike) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsLike); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLink) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsLink); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Listen" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsListen) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsListen); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Mention" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsMention) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsMention); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Move" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsMove) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsMove); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Note" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsNote) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsNote); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Object" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsObject) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsObject); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Offer" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOffer) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsOffer); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollection" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrderedCollection) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollectionPage" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Organization" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrganization) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsOrganization); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Page" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPage) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsPage); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Person" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPerson) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsPerson); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Place" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPlace) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsPlace); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Profile" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsProfile) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsProfile); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" {
- if fn, ok := this.predicate.(func(context.Context, vocab.W3IDSecurityV1PublicKey) (bool, error)); ok {
- if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Push" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedPush) (bool, error)); ok {
- if v, ok := o.(vocab.ForgeFedPush); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsQuestion) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsQuestion); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Read" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRead) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsRead); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Reject" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsReject) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsReject); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Relationship" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRelationship) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsRelationship); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Remove" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRemove) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsRemove); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Repository" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedRepository) (bool, error)); ok {
- if v, ok := o.(vocab.ForgeFedRepository); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsService) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsService); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeAccept" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeReject" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTentativeReject) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Ticket" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedTicket) (bool, error)); ok {
- if v, ok := o.(vocab.ForgeFedTicket); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "TicketDependency" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ForgeFedTicketDependency) (bool, error)); ok {
- if v, ok := o.(vocab.ForgeFedTicketDependency); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTombstone) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsTombstone); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTravel) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsTravel); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Undo" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsUndo) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsUndo); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Update" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsUpdate) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsUpdate); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Video" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsVideo) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsVideo); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "View" {
- if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsView) (bool, error)); ok {
- if v, ok := o.(vocab.ActivityStreamsView); ok {
- predicatePasses, err = fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return false, errCannotTypeAssertType
- }
- } else {
- return false, ErrPredicateUnmatched
- }
- } else {
- return false, ErrUnhandledType
- }
- if err != nil {
- return predicatePasses, err
- }
- if predicatePasses {
- return true, this.delegate.Resolve(ctx, o)
- } else {
- return false, nil
- }
-}
diff --git a/vendor/github.com/go-fed/activity/streams/gen_type_resolver.go b/vendor/github.com/go-fed/activity/streams/gen_type_resolver.go
deleted file mode 100644
index f834520f0..000000000
--- a/vendor/github.com/go-fed/activity/streams/gen_type_resolver.go
+++ /dev/null
@@ -1,744 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package streams
-
-import (
- "context"
- "errors"
- vocab "github.com/go-fed/activity/streams/vocab"
-)
-
-// TypeResolver resolves ActivityStreams values based on their type name.
-type TypeResolver struct {
- callbacks []interface{}
-}
-
-// NewTypeResolver creates a new Resolver that examines the type of an
-// ActivityStream value to determine what callback function to pass the
-// concretely typed value. The callback is guaranteed to receive a value whose
-// underlying ActivityStreams type matches the concrete interface name in its
-// signature. The callback functions must be of the form:
-//
-// func(context.Context, ) error
-//
-// where TypeInterface is the code-generated interface for an ActivityStream
-// type. An error is returned if a callback function does not match this
-// signature.
-func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) {
- for _, cb := range callbacks {
- // Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail.
- switch cb.(type) {
- case func(context.Context, vocab.ActivityStreamsAccept) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsActivity) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsAdd) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsAnnounce) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsApplication) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsArrive) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsArticle) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsAudio) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsBlock) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedBranch) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsCollection) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsCollectionPage) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedCommit) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsCreate) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsDelete) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsDislike) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsDocument) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.TootEmoji) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsEvent) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsFlag) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsFollow) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsGroup) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.TootIdentityProof) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsIgnore) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsImage) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsInvite) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsJoin) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsLeave) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsLike) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsLink) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsListen) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsMention) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsMove) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsNote) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsObject) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOffer) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOrderedCollection) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsOrganization) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsPage) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsPerson) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsPlace) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsProfile) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.W3IDSecurityV1PublicKey) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedPush) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsQuestion) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsRead) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsReject) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsRelationship) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsRemove) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedRepository) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsService) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTentativeAccept) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTentativeReject) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedTicket) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ForgeFedTicketDependency) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTombstone) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsTravel) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsUndo) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsUpdate) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsVideo) error:
- // Do nothing, this callback has a correct signature.
- case func(context.Context, vocab.ActivityStreamsView) error:
- // Do nothing, this callback has a correct signature.
- default:
- return nil, errors.New("a callback function is of the wrong signature and would never be called")
- }
- }
- return &TypeResolver{callbacks: callbacks}, nil
-}
-
-// Resolve applies the first callback function whose signature accepts the
-// ActivityStreams value's type. This strictly assures that the callback
-// function will only be passed ActivityStream objects whose type matches its
-// interface. Returns an error if the ActivityStreams type does not match
-// callbackers, is not a type handled by the generated code, or the value
-// passed in is not go-fed compatible.
-func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface) error {
- for _, i := range this.callbacks {
- if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Accept" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAccept) error); ok {
- if v, ok := o.(vocab.ActivityStreamsAccept); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Activity" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsActivity) error); ok {
- if v, ok := o.(vocab.ActivityStreamsActivity); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Add" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAdd) error); ok {
- if v, ok := o.(vocab.ActivityStreamsAdd); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok {
- if v, ok := o.(vocab.ActivityStreamsAnnounce); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Application" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok {
- if v, ok := o.(vocab.ActivityStreamsApplication); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Arrive" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArrive) error); ok {
- if v, ok := o.(vocab.ActivityStreamsArrive); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Article" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArticle) error); ok {
- if v, ok := o.(vocab.ActivityStreamsArticle); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok {
- if v, ok := o.(vocab.ActivityStreamsAudio); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Block" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsBlock) error); ok {
- if v, ok := o.(vocab.ActivityStreamsBlock); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Branch" {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedBranch) error); ok {
- if v, ok := o.(vocab.ForgeFedBranch); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Collection" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok {
- if v, ok := o.(vocab.ActivityStreamsCollection); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "CollectionPage" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollectionPage) error); ok {
- if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Commit" {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedCommit) error); ok {
- if v, ok := o.(vocab.ForgeFedCommit); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Create" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok {
- if v, ok := o.(vocab.ActivityStreamsCreate); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Delete" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDelete) error); ok {
- if v, ok := o.(vocab.ActivityStreamsDelete); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Dislike" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDislike) error); ok {
- if v, ok := o.(vocab.ActivityStreamsDislike); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Document" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDocument) error); ok {
- if v, ok := o.(vocab.ActivityStreamsDocument); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "Emoji" {
- if fn, ok := i.(func(context.Context, vocab.TootEmoji) error); ok {
- if v, ok := o.(vocab.TootEmoji); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Event" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEvent) error); ok {
- if v, ok := o.(vocab.ActivityStreamsEvent); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Flag" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFlag) error); ok {
- if v, ok := o.(vocab.ActivityStreamsFlag); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Follow" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFollow) error); ok {
- if v, ok := o.(vocab.ActivityStreamsFollow); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Group" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsGroup) error); ok {
- if v, ok := o.(vocab.ActivityStreamsGroup); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "http://joinmastodon.org/ns" && o.GetTypeName() == "IdentityProof" {
- if fn, ok := i.(func(context.Context, vocab.TootIdentityProof) error); ok {
- if v, ok := o.(vocab.TootIdentityProof); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Ignore" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIgnore) error); ok {
- if v, ok := o.(vocab.ActivityStreamsIgnore); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Image" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsImage) error); ok {
- if v, ok := o.(vocab.ActivityStreamsImage); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "IntransitiveActivity" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error); ok {
- if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Invite" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsInvite) error); ok {
- if v, ok := o.(vocab.ActivityStreamsInvite); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Join" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsJoin) error); ok {
- if v, ok := o.(vocab.ActivityStreamsJoin); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Leave" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLeave) error); ok {
- if v, ok := o.(vocab.ActivityStreamsLeave); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok {
- if v, ok := o.(vocab.ActivityStreamsLike); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Link" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok {
- if v, ok := o.(vocab.ActivityStreamsLink); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Listen" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsListen) error); ok {
- if v, ok := o.(vocab.ActivityStreamsListen); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Mention" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMention) error); ok {
- if v, ok := o.(vocab.ActivityStreamsMention); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Move" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMove) error); ok {
- if v, ok := o.(vocab.ActivityStreamsMove); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Note" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsNote) error); ok {
- if v, ok := o.(vocab.ActivityStreamsNote); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Object" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsObject) error); ok {
- if v, ok := o.(vocab.ActivityStreamsObject); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Offer" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOffer) error); ok {
- if v, ok := o.(vocab.ActivityStreamsOffer); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollection" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollection) error); ok {
- if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "OrderedCollectionPage" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error); ok {
- if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Organization" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrganization) error); ok {
- if v, ok := o.(vocab.ActivityStreamsOrganization); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Page" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPage) error); ok {
- if v, ok := o.(vocab.ActivityStreamsPage); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Person" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPerson) error); ok {
- if v, ok := o.(vocab.ActivityStreamsPerson); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Place" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPlace) error); ok {
- if v, ok := o.(vocab.ActivityStreamsPlace); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Profile" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsProfile) error); ok {
- if v, ok := o.(vocab.ActivityStreamsProfile); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://w3id.org/security/v1" && o.GetTypeName() == "PublicKey" {
- if fn, ok := i.(func(context.Context, vocab.W3IDSecurityV1PublicKey) error); ok {
- if v, ok := o.(vocab.W3IDSecurityV1PublicKey); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Push" {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedPush) error); ok {
- if v, ok := o.(vocab.ForgeFedPush); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Question" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok {
- if v, ok := o.(vocab.ActivityStreamsQuestion); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Read" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRead) error); ok {
- if v, ok := o.(vocab.ActivityStreamsRead); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Reject" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsReject) error); ok {
- if v, ok := o.(vocab.ActivityStreamsReject); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Relationship" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRelationship) error); ok {
- if v, ok := o.(vocab.ActivityStreamsRelationship); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Remove" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRemove) error); ok {
- if v, ok := o.(vocab.ActivityStreamsRemove); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Repository" {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedRepository) error); ok {
- if v, ok := o.(vocab.ForgeFedRepository); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Service" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok {
- if v, ok := o.(vocab.ActivityStreamsService); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeAccept" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeAccept) error); ok {
- if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "TentativeReject" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeReject) error); ok {
- if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "Ticket" {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedTicket) error); ok {
- if v, ok := o.(vocab.ForgeFedTicket); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://forgefed.peers.community/ns" && o.GetTypeName() == "TicketDependency" {
- if fn, ok := i.(func(context.Context, vocab.ForgeFedTicketDependency) error); ok {
- if v, ok := o.(vocab.ForgeFedTicketDependency); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Tombstone" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok {
- if v, ok := o.(vocab.ActivityStreamsTombstone); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok {
- if v, ok := o.(vocab.ActivityStreamsTravel); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Undo" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUndo) error); ok {
- if v, ok := o.(vocab.ActivityStreamsUndo); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Update" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUpdate) error); ok {
- if v, ok := o.(vocab.ActivityStreamsUpdate); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Video" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsVideo) error); ok {
- if v, ok := o.(vocab.ActivityStreamsVideo); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "View" {
- if fn, ok := i.(func(context.Context, vocab.ActivityStreamsView) error); ok {
- if v, ok := o.(vocab.ActivityStreamsView); ok {
- return fn(ctx, v)
- } else {
- // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
- return errCannotTypeAssertType
- }
- }
- } else {
- return ErrUnhandledType
- }
- }
- return ErrNoCallbackMatch
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go
deleted file mode 100644
index 9bbe03ade..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyaccuracy
-
-import (
- "fmt"
- float "github.com/go-fed/activity/streams/values/float"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsAccuracyProperty is the functional property "accuracy". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsAccuracyProperty struct {
- xmlschemaFloatMember float64
- hasFloatMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeAccuracyProperty creates a "accuracy" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeAccuracyProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAccuracyProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "accuracy"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "accuracy")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsAccuracyProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := float.DeserializeFloat(i); err == nil {
- this := &ActivityStreamsAccuracyProperty{
- alias: alias,
- hasFloatMember: true,
- xmlschemaFloatMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsAccuracyProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsAccuracyProperty creates a new accuracy property.
-func NewActivityStreamsAccuracyProperty() *ActivityStreamsAccuracyProperty {
- return &ActivityStreamsAccuracyProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat
-// afterwards will return false.
-func (this *ActivityStreamsAccuracyProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasFloatMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaFloat returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsAccuracyProperty) Get() float64 {
- return this.xmlschemaFloatMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsAccuracyProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsAccuracyProperty) HasAny() bool {
- return this.IsXMLSchemaFloat() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsAccuracyProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaFloat returns true if this property is set and not an IRI.
-func (this ActivityStreamsAccuracyProperty) IsXMLSchemaFloat() bool {
- return this.hasFloatMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsAccuracyProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsAccuracyProperty) KindIndex() int {
- if this.IsXMLSchemaFloat() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsAccuracyProperty) LessThan(o vocab.ActivityStreamsAccuracyProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return float.LessFloat(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "accuracy".
-func (this ActivityStreamsAccuracyProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "accuracy"
- } else {
- return "accuracy"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsAccuracyProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaFloat() {
- return float.SerializeFloat(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will
-// return true.
-func (this *ActivityStreamsAccuracyProperty) Set(v float64) {
- this.Clear()
- this.xmlschemaFloatMember = v
- this.hasFloatMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsAccuracyProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_pkg.go
deleted file mode 100644
index 85c65198c..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyactor
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go
deleted file mode 100644
index 6c5dec70c..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go
+++ /dev/null
@@ -1,7030 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyactor
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsActorPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsActorPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsActorProperty
-}
-
-// NewActivityStreamsActorPropertyIterator creates a new ActivityStreamsActor
-// property.
-func NewActivityStreamsActorPropertyIterator() *ActivityStreamsActorPropertyIterator {
- return &ActivityStreamsActorPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsActorPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsActorPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsActorPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsActorPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsActorPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsActorPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsActorPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsActorPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsActorPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsActorPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsActorPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsActorPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsActorPropertyIterator) 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 ActivityStreamsActorPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsActorPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStreamsActorPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsActor".
-func (this ActivityStreamsActorPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsActor"
- } else {
- return "ActivityStreamsActor"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsActorPropertyIterator) Next() vocab.ActivityStreamsActorPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsActorPropertyIterator) Prev() vocab.ActivityStreamsActorPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsActorPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsActor property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsActorPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsActorProperty is the non-functional property "actor". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsActorProperty struct {
- properties []*ActivityStreamsActorPropertyIterator
- alias string
-}
-
-// DeserializeActorProperty creates a "actor" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeActorProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsActorProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "actor"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "actor")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsActorProperty{
- alias: alias,
- properties: []*ActivityStreamsActorPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsActorPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsActorPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsActorProperty creates a new actor property.
-func NewActivityStreamsActorProperty() *ActivityStreamsActorProperty {
- return &ActivityStreamsActorProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "actor". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "actor". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "actor". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "actor". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "actor". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "actor". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "actor". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "actor". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "actor". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "actor". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "actor". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "actor". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsActorProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "actor"
-func (this *ActivityStreamsActorProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "actor". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsActorProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "actor". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsActorProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsActorProperty) At(index int) vocab.ActivityStreamsActorPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsActorProperty) Begin() vocab.ActivityStreamsActorPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsActorProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsActorProperty) End() vocab.ActivityStreamsActorPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "actor". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "actor". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "actor". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "actor". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "actor". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "actor". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "actor". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "actor". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "actor". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "actor". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "actor". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "actor". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "actor". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "actor". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "actor". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "actor". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "actor". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "actor". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "actor".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "actor". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "actor". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "actor". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsActorProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsActorProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsActorProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "actor" property.
-func (this ActivityStreamsActorProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsActorProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsActorProperty) LessThan(o vocab.ActivityStreamsActorProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("actor") with any alias.
-func (this ActivityStreamsActorProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "actor"
- } else {
- return "actor"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "actor". Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "actor". Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "actor".
-func (this *ActivityStreamsActorProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "actor". Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsActorPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "actor". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsActorProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsActorPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "actor", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsActorPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsActorProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "actor". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "actor". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "actor". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "actor". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "actor". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "actor". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "actor". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "actor". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "actor". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "actor". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "actor". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "actor". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "actor". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "actor". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "actor". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "actor". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "actor". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsActorProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "actor". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "actor".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsActorProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "actor". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsActorProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "actor". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsActorProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "actor". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsActorProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsActorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "actor" property.
-func (this ActivityStreamsActorProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go
deleted file mode 100644
index 06e4e1f0f..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyaltitude
-
-import (
- "fmt"
- float "github.com/go-fed/activity/streams/values/float"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsAltitudeProperty is the functional property "altitude". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsAltitudeProperty struct {
- xmlschemaFloatMember float64
- hasFloatMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeAltitudeProperty creates a "altitude" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeAltitudeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAltitudeProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "altitude"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "altitude")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsAltitudeProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := float.DeserializeFloat(i); err == nil {
- this := &ActivityStreamsAltitudeProperty{
- alias: alias,
- hasFloatMember: true,
- xmlschemaFloatMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsAltitudeProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsAltitudeProperty creates a new altitude property.
-func NewActivityStreamsAltitudeProperty() *ActivityStreamsAltitudeProperty {
- return &ActivityStreamsAltitudeProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat
-// afterwards will return false.
-func (this *ActivityStreamsAltitudeProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasFloatMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaFloat returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsAltitudeProperty) Get() float64 {
- return this.xmlschemaFloatMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsAltitudeProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsAltitudeProperty) HasAny() bool {
- return this.IsXMLSchemaFloat() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsAltitudeProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaFloat returns true if this property is set and not an IRI.
-func (this ActivityStreamsAltitudeProperty) IsXMLSchemaFloat() bool {
- return this.hasFloatMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsAltitudeProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsAltitudeProperty) KindIndex() int {
- if this.IsXMLSchemaFloat() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsAltitudeProperty) LessThan(o vocab.ActivityStreamsAltitudeProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return float.LessFloat(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "altitude".
-func (this ActivityStreamsAltitudeProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "altitude"
- } else {
- return "altitude"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsAltitudeProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaFloat() {
- return float.SerializeFloat(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will
-// return true.
-func (this *ActivityStreamsAltitudeProperty) Set(v float64) {
- this.Clear()
- this.xmlschemaFloatMember = v
- this.hasFloatMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsAltitudeProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go
deleted file mode 100644
index e2ea4919a..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyanyof
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go
deleted file mode 100644
index 54f168795..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go
+++ /dev/null
@@ -1,7030 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyanyof
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsAnyOfPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsAnyOfPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsAnyOfProperty
-}
-
-// NewActivityStreamsAnyOfPropertyIterator creates a new ActivityStreamsAnyOf
-// property.
-func NewActivityStreamsAnyOfPropertyIterator() *ActivityStreamsAnyOfPropertyIterator {
- return &ActivityStreamsAnyOfPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsAnyOfPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAnyOfPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsAnyOfPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsAnyOfPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsAnyOfPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsAnyOfPropertyIterator) 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 ActivityStreamsAnyOfPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsAnyOfPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStreamsAnyOfPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsAnyOf".
-func (this ActivityStreamsAnyOfPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsAnyOf"
- } else {
- return "ActivityStreamsAnyOf"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsAnyOfPropertyIterator) Next() vocab.ActivityStreamsAnyOfPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsAnyOfPropertyIterator) Prev() vocab.ActivityStreamsAnyOfPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsAnyOf property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsAnyOfPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsAnyOfProperty is the non-functional property "anyOf". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsAnyOfProperty struct {
- properties []*ActivityStreamsAnyOfPropertyIterator
- alias string
-}
-
-// DeserializeAnyOfProperty creates a "anyOf" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeAnyOfProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAnyOfProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "anyOf"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "anyOf")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsAnyOfProperty{
- alias: alias,
- properties: []*ActivityStreamsAnyOfPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsAnyOfPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsAnyOfPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsAnyOfProperty creates a new anyOf property.
-func NewActivityStreamsAnyOfProperty() *ActivityStreamsAnyOfProperty {
- return &ActivityStreamsAnyOfProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "anyOf". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "anyOf". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "anyOf". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "anyOf". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "anyOf". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "anyOf". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "anyOf". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "anyOf". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "anyOf". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "anyOf". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "anyOf". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "anyOf". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "anyOf"
-func (this *ActivityStreamsAnyOfProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "anyOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAnyOfProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "anyOf". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsAnyOfProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsAnyOfProperty) At(index int) vocab.ActivityStreamsAnyOfPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsAnyOfProperty) Begin() vocab.ActivityStreamsAnyOfPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsAnyOfProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsAnyOfProperty) End() vocab.ActivityStreamsAnyOfPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "anyOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "anyOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "anyOf". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "anyOf". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "anyOf". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "anyOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "anyOf". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "anyOf". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "anyOf". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "anyOf". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "anyOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "anyOf". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "anyOf". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "anyOf". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "anyOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "anyOf". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "anyOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "anyOf". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "anyOf".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "anyOf". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "anyOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "anyOf". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsAnyOfProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsAnyOfProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsAnyOfProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "anyOf" property.
-func (this ActivityStreamsAnyOfProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsAnyOfProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsAnyOfProperty) LessThan(o vocab.ActivityStreamsAnyOfProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("anyOf") with any alias.
-func (this ActivityStreamsAnyOfProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "anyOf"
- } else {
- return "anyOf"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "anyOf". Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "anyOf". Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "anyOf".
-func (this *ActivityStreamsAnyOfProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "anyOf". Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "anyOf". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsAnyOfProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "anyOf", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsAnyOfPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsAnyOfProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "anyOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "anyOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "anyOf". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "anyOf". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "anyOf". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "anyOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "anyOf". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "anyOf". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "anyOf". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "anyOf". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "anyOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "anyOf". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "anyOf". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "anyOf". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "anyOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "anyOf". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "anyOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAnyOfProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "anyOf". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "anyOf".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsAnyOfProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "anyOf". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "anyOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAnyOfProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "anyOf". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsAnyOfProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsAnyOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "anyOf" property.
-func (this ActivityStreamsAnyOfProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go
deleted file mode 100644
index a9b93f681..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyattachment
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go
deleted file mode 100644
index efe1b3a38..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go
+++ /dev/null
@@ -1,7047 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyattachment
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsAttachmentPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsAttachmentPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsAttachmentProperty
-}
-
-// NewActivityStreamsAttachmentPropertyIterator creates a new
-// ActivityStreamsAttachment property.
-func NewActivityStreamsAttachmentPropertyIterator() *ActivityStreamsAttachmentPropertyIterator {
- return &ActivityStreamsAttachmentPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsAttachmentPropertyIterator creates an iterator from
-// an element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAttachmentPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsAttachmentPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsAttachmentPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsAttachmentPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsAttachmentPropertyIterator) 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 ActivityStreamsAttachmentPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsAttachmentPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityStreamsAttachmentPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsAttachment".
-func (this ActivityStreamsAttachmentPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsAttachment"
- } else {
- return "ActivityStreamsAttachment"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsAttachmentPropertyIterator) Next() vocab.ActivityStreamsAttachmentPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsAttachmentPropertyIterator) Prev() vocab.ActivityStreamsAttachmentPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsAttachment property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsAttachmentPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsAttachmentProperty is the non-functional property "attachment".
-// It is permitted to have one or more values, and of different value types.
-type ActivityStreamsAttachmentProperty struct {
- properties []*ActivityStreamsAttachmentPropertyIterator
- alias string
-}
-
-// DeserializeAttachmentProperty creates a "attachment" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeAttachmentProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "attachment"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "attachment")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsAttachmentProperty{
- alias: alias,
- properties: []*ActivityStreamsAttachmentPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsAttachmentPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsAttachmentPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsAttachmentProperty creates a new attachment property.
-func NewActivityStreamsAttachmentProperty() *ActivityStreamsAttachmentProperty {
- return &ActivityStreamsAttachmentProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "attachment". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "attachment". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "attachment". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "attachment". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "attachment". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "attachment". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "attachment". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "attachment". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "attachment". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "attachment". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "attachment". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "attachment". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property
-// "attachment"
-func (this *ActivityStreamsAttachmentProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "attachment". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "attachment". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttachmentProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "attachment". Invalidates iterators that are traversing using
-// Prev. Returns an error if the type is not a valid one to set for this
-// property.
-func (this *ActivityStreamsAttachmentProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsAttachmentProperty) At(index int) vocab.ActivityStreamsAttachmentPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsAttachmentProperty) Begin() vocab.ActivityStreamsAttachmentPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsAttachmentProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsAttachmentProperty) End() vocab.ActivityStreamsAttachmentPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "attachment". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "attachment". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "attachment". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "attachment". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "attachment". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "attachment". Existing elements
-// at that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "attachment". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "attachment". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "attachment". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "attachment". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "attachment". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "attachment". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "attachment".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "attachment". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "attachment". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "attachment". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsAttachmentProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsAttachmentProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsAttachmentProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "attachment" property.
-func (this ActivityStreamsAttachmentProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsAttachmentProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsAttachmentProperty) LessThan(o vocab.ActivityStreamsAttachmentProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("attachment") with any alias.
-func (this ActivityStreamsAttachmentProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "attachment"
- } else {
- return "attachment"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "attachment". Invalidates all
-// iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "attachment". Invalidates all
-// iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "attachment".
-func (this *ActivityStreamsAttachmentProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "attachment". Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "attachment". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsAttachmentProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "attachment", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsAttachmentPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsAttachmentProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "attachment". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "attachment". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "attachment". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "attachment". Panics if the
-// index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "attachment". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "attachment". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "attachment". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAttachmentProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "attachment". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "attachment". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "attachment". Panics if the index is out of bounds.
-func (this *ActivityStreamsAttachmentProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "attachment". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAttachmentProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "attachment". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttachmentProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "attachment". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property. Panics if the index is out of
-// bounds.
-func (this *ActivityStreamsAttachmentProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsAttachmentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "attachment" property.
-func (this ActivityStreamsAttachmentProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go
deleted file mode 100644
index bccd4bde3..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyattributedto
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go
deleted file mode 100644
index ca378cb9f..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go
+++ /dev/null
@@ -1,7089 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyattributedto
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsAttributedToPropertyIterator is an iterator for a property. It
-// is permitted to be one of multiple value types. At most, one type of value
-// can be present, or none at all. Setting a value will clear the other types
-// of values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsAttributedToPropertyIterator struct {
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsAttributedToProperty
-}
-
-// NewActivityStreamsAttributedToPropertyIterator creates a new
-// ActivityStreamsAttributedTo property.
-func NewActivityStreamsAttributedToPropertyIterator() *ActivityStreamsAttributedToPropertyIterator {
- return &ActivityStreamsAttributedToPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsAttributedToPropertyIterator creates an iterator from
-// an element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAttributedToPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsAttributedToPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsAttributedToPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsLink() ||
- 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.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsAttributedToPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsAttributedToPropertyIterator) 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 ActivityStreamsAttributedToPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsAttributedToPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsLink() {
- return 0
- }
- if this.IsActivityStreamsObject() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.ActivityStreamsAttributedToPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsAttributedTo".
-func (this ActivityStreamsAttributedToPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsAttributedTo"
- } else {
- return "ActivityStreamsAttributedTo"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsAttributedToPropertyIterator) Next() vocab.ActivityStreamsAttributedToPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsAttributedToPropertyIterator) Prev() vocab.ActivityStreamsAttributedToPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsAttributedTo property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsAttributedToPropertyIterator) clear() {
- this.activitystreamsLinkMember = nil
- this.activitystreamsObjectMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsAttributedToProperty is the non-functional property
-// "attributedTo". It is permitted to have one or more values, and of
-// different value types.
-type ActivityStreamsAttributedToProperty struct {
- properties []*ActivityStreamsAttributedToPropertyIterator
- alias string
-}
-
-// DeserializeAttributedToProperty creates a "attributedTo" property from an
-// interface representation that has been unmarshalled from a text or binary
-// format.
-func DeserializeAttributedToProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "attributedTo"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "attributedTo")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsAttributedToProperty{
- alias: alias,
- properties: []*ActivityStreamsAttributedToPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsAttributedToPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsAttributedToPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsAttributedToProperty creates a new attributedTo property.
-func NewActivityStreamsAttributedToProperty() *ActivityStreamsAttributedToProperty {
- return &ActivityStreamsAttributedToProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "attributedTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "attributedTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "attributedTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "attributedTo". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "attributedTo". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "attributedTo". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "attributedTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "attributedTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "attributedTo". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "attributedTo". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "attributedTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "attributedTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property
-// "attributedTo"
-func (this *ActivityStreamsAttributedToProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "attributedTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "attributedTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAttributedToProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "attributedTo". Invalidates iterators that are traversing using
-// Prev. Returns an error if the type is not a valid one to set for this
-// property.
-func (this *ActivityStreamsAttributedToProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsAttributedToProperty) At(index int) vocab.ActivityStreamsAttributedToPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsAttributedToProperty) Begin() vocab.ActivityStreamsAttributedToPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsAttributedToProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsAttributedToProperty) End() vocab.ActivityStreamsAttributedToPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "attributedTo". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "attributedTo". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "attributedTo". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "attributedTo". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "attributedTo". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "attributedTo". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "attributedTo". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "attributedTo". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "attributedTo". Existing
-// elements at that index and higher are shifted back once. Invalidates all
-// iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "attributedTo". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "attributedTo". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "attributedTo". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "attributedTo". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "attributedTo". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "attributedTo". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "attributedTo". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "attributedTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "attributedTo". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property
-// "attributedTo". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "attributedTo". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "attributedTo". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "attributedTo". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsAttributedToProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsAttributedToProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsAttributedToProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "attributedTo" property.
-func (this ActivityStreamsAttributedToProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsAttributedToProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsAttributedToProperty) LessThan(o vocab.ActivityStreamsAttributedToProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("attributedTo") with any alias.
-func (this ActivityStreamsAttributedToProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "attributedTo"
- } else {
- return "attributedTo"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "attributedTo". Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "attributedTo". Invalidates all
-// iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "attributedTo". Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "attributedTo".
-func (this *ActivityStreamsAttributedToProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "attributedTo". Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "attributedTo". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsAttributedToProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "attributedTo", regardless of its type. Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsAttributedToPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsAttributedToProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "attributedTo". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "attributedTo". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "attributedTo". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "attributedTo". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "attributedTo". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "attributedTo". Panics if the
-// index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "attributedTo". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "attributedTo". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "attributedTo". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "attributedTo". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "attributedTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAttributedToProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "attributedTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "attributedTo". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "attributedTo". Panics if the index is out of bounds.
-func (this *ActivityStreamsAttributedToProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "attributedTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAttributedToProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "attributedTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAttributedToProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "attributedTo". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property. Panics if the index is out of
-// bounds.
-func (this *ActivityStreamsAttributedToProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsAttributedToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "attributedTo"
-// property.
-func (this ActivityStreamsAttributedToProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_pkg.go
deleted file mode 100644
index 9f7a550a5..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyaudience
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go
deleted file mode 100644
index aca72d149..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go
+++ /dev/null
@@ -1,7042 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyaudience
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsAudiencePropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsAudiencePropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsAudienceProperty
-}
-
-// NewActivityStreamsAudiencePropertyIterator creates a new
-// ActivityStreamsAudience property.
-func NewActivityStreamsAudiencePropertyIterator() *ActivityStreamsAudiencePropertyIterator {
- return &ActivityStreamsAudiencePropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsAudiencePropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAudiencePropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsAudiencePropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsAudiencePropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsAudiencePropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsAudiencePropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsAudiencePropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsAudiencePropertyIterator) 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 ActivityStreamsAudiencePropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsAudiencePropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStreamsAudiencePropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsAudience".
-func (this ActivityStreamsAudiencePropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsAudience"
- } else {
- return "ActivityStreamsAudience"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsAudiencePropertyIterator) Next() vocab.ActivityStreamsAudiencePropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsAudiencePropertyIterator) Prev() vocab.ActivityStreamsAudiencePropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsAudiencePropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsAudience property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsAudiencePropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsAudienceProperty is the non-functional property "audience". It
-// is permitted to have one or more values, and of different value types.
-type ActivityStreamsAudienceProperty struct {
- properties []*ActivityStreamsAudiencePropertyIterator
- alias string
-}
-
-// DeserializeAudienceProperty creates a "audience" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeAudienceProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAudienceProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "audience"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "audience")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsAudienceProperty{
- alias: alias,
- properties: []*ActivityStreamsAudiencePropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsAudiencePropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsAudiencePropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsAudienceProperty creates a new audience property.
-func NewActivityStreamsAudienceProperty() *ActivityStreamsAudienceProperty {
- return &ActivityStreamsAudienceProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "audience". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "audience". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "audience". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "audience". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "audience". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "audience". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "audience". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "audience". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "audience". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "audience". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "audience". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "audience"
-func (this *ActivityStreamsAudienceProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "audience". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsAudienceProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "audience". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsAudienceProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "audience". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsAudienceProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsAudienceProperty) At(index int) vocab.ActivityStreamsAudiencePropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsAudienceProperty) Begin() vocab.ActivityStreamsAudiencePropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsAudienceProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsAudienceProperty) End() vocab.ActivityStreamsAudiencePropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "audience". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "audience". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "audience". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "audience". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "audience". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "audience". Existing elements
-// at that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "audience". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "audience". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "audience". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "audience". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "audience". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "audience". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "audience". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "audience".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "audience". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "audience". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "audience". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsAudienceProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsAudienceProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsAudienceProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "audience" property.
-func (this ActivityStreamsAudienceProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsAudienceProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsAudienceProperty) LessThan(o vocab.ActivityStreamsAudienceProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("audience") with any alias.
-func (this ActivityStreamsAudienceProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "audience"
- } else {
- return "audience"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "audience". Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "audience". Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "audience".
-func (this *ActivityStreamsAudienceProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "audience". Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "audience". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsAudienceProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsAudiencePropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "audience", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsAudiencePropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsAudienceProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "audience". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "audience". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "audience". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "audience". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "audience". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "audience". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "audience". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "audience". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "audience". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "audience". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "audience". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "audience". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "audience". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "audience". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "audience". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "audience". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "audience". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsAudienceProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "audience". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsAudienceProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "audience". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "audience". Panics if the index is out of bounds.
-func (this *ActivityStreamsAudienceProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "audience". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "audience". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsAudienceProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "audience". Invalidates all iterators. Returns an error if the type is not
-// a valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsAudienceProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsAudiencePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "audience" property.
-func (this ActivityStreamsAudienceProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go
deleted file mode 100644
index edc0629b5..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertybcc
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go
deleted file mode 100644
index 19beec707..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go
+++ /dev/null
@@ -1,7028 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertybcc
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsBccPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsBccPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsBccProperty
-}
-
-// NewActivityStreamsBccPropertyIterator creates a new ActivityStreamsBcc property.
-func NewActivityStreamsBccPropertyIterator() *ActivityStreamsBccPropertyIterator {
- return &ActivityStreamsBccPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsBccPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsBccPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsBccPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBccPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsBccPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsBccPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsBccPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsBccPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsBccPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsBccPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsBccPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsBccPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsBccPropertyIterator) 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 ActivityStreamsBccPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsBccPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsBccPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsBcc".
-func (this ActivityStreamsBccPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsBcc"
- } else {
- return "ActivityStreamsBcc"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsBccPropertyIterator) Next() vocab.ActivityStreamsBccPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsBccPropertyIterator) Prev() vocab.ActivityStreamsBccPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsBccPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsBcc property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsBccPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsBccProperty is the non-functional property "bcc". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsBccProperty struct {
- properties []*ActivityStreamsBccPropertyIterator
- alias string
-}
-
-// DeserializeBccProperty creates a "bcc" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeBccProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBccProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "bcc"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "bcc")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsBccProperty{
- alias: alias,
- properties: []*ActivityStreamsBccPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsBccPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsBccPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsBccProperty creates a new bcc property.
-func NewActivityStreamsBccProperty() *ActivityStreamsBccProperty {
- return &ActivityStreamsBccProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "bcc". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "bcc". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "bcc". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "bcc". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "bcc". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "bcc". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "bcc". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "bcc". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "bcc". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "bcc". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "bcc". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsBccProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "bcc"
-func (this *ActivityStreamsBccProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "bcc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBccProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "bcc". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsBccProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsBccProperty) At(index int) vocab.ActivityStreamsBccPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsBccProperty) Begin() vocab.ActivityStreamsBccPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsBccProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsBccProperty) End() vocab.ActivityStreamsBccPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "bcc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "bcc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "bcc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "bcc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "bcc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "bcc". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "bcc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "bcc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "bcc". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "bcc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "bcc". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "bcc". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "bcc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "bcc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "bcc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "bcc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "bcc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "bcc". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "bcc". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "bcc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "bcc". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "bcc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "bcc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "bcc". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "bcc".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "bcc". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "bcc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "bcc". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsBccProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsBccProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsBccProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "bcc" property.
-func (this ActivityStreamsBccProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsBccProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsBccProperty) LessThan(o vocab.ActivityStreamsBccProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("bcc") with any alias.
-func (this ActivityStreamsBccProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "bcc"
- } else {
- return "bcc"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "bcc". Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "bcc". Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "bcc".
-func (this *ActivityStreamsBccProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "bcc". Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsBccPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "bcc". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsBccProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsBccPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "bcc", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsBccPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsBccProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "bcc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "bcc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "bcc". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "bcc". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "bcc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "bcc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "bcc". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "bcc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "bcc". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "bcc". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "bcc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "bcc". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "bcc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "bcc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "bcc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "bcc". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "bcc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBccProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "bcc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "bcc".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsBccProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "bcc". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsBccProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "bcc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBccProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "bcc". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsBccProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsBccPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "bcc" property.
-func (this ActivityStreamsBccProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_pkg.go
deleted file mode 100644
index 151b80b73..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertybto
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go
deleted file mode 100644
index a3e8b2c2c..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go
+++ /dev/null
@@ -1,7028 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertybto
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsBtoPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsBtoPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsBtoProperty
-}
-
-// NewActivityStreamsBtoPropertyIterator creates a new ActivityStreamsBto property.
-func NewActivityStreamsBtoPropertyIterator() *ActivityStreamsBtoPropertyIterator {
- return &ActivityStreamsBtoPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsBtoPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsBtoPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsBtoPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsBtoPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsBtoPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsBtoPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsBtoPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsBtoPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsBtoPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsBtoPropertyIterator) 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 ActivityStreamsBtoPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsBtoPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsBtoPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsBto".
-func (this ActivityStreamsBtoPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsBto"
- } else {
- return "ActivityStreamsBto"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsBtoPropertyIterator) Next() vocab.ActivityStreamsBtoPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsBtoPropertyIterator) Prev() vocab.ActivityStreamsBtoPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsBtoPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsBto property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsBtoPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsBtoProperty is the non-functional property "bto". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsBtoProperty struct {
- properties []*ActivityStreamsBtoPropertyIterator
- alias string
-}
-
-// DeserializeBtoProperty creates a "bto" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeBtoProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsBtoProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "bto"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "bto")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsBtoProperty{
- alias: alias,
- properties: []*ActivityStreamsBtoPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsBtoPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsBtoPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsBtoProperty creates a new bto property.
-func NewActivityStreamsBtoProperty() *ActivityStreamsBtoProperty {
- return &ActivityStreamsBtoProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "bto". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "bto". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "bto". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "bto". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "bto". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "bto". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "bto". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "bto". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "bto". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "bto". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "bto". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsBtoProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "bto"
-func (this *ActivityStreamsBtoProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "bto". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsBtoProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "bto". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsBtoProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsBtoProperty) At(index int) vocab.ActivityStreamsBtoPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsBtoProperty) Begin() vocab.ActivityStreamsBtoPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsBtoProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsBtoProperty) End() vocab.ActivityStreamsBtoPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "bto". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "bto". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "bto". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "bto". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "bto". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "bto". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "bto". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "bto". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "bto". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "bto". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "bto". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "bto". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "bto". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "bto". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "bto". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "bto". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "bto". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "bto". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "bto". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "bto". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "bto". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "bto". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "bto". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "bto". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "bto".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "bto". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "bto". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "bto". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsBtoProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsBtoProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsBtoProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "bto" property.
-func (this ActivityStreamsBtoProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsBtoProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsBtoProperty) LessThan(o vocab.ActivityStreamsBtoProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("bto") with any alias.
-func (this ActivityStreamsBtoProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "bto"
- } else {
- return "bto"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "bto". Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "bto". Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "bto".
-func (this *ActivityStreamsBtoProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "bto". Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "bto". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsBtoProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsBtoPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "bto", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsBtoPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsBtoProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "bto". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "bto". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "bto". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "bto". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "bto". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "bto". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "bto". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "bto". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "bto". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "bto". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "bto". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "bto". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "bto". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "bto". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "bto". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "bto". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "bto". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsBtoProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "bto". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "bto".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsBtoProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "bto". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsBtoProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "bto". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsBtoProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "bto". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsBtoProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsBtoPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "bto" property.
-func (this ActivityStreamsBtoProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_pkg.go
deleted file mode 100644
index 5671fdfc2..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertycc
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go
deleted file mode 100644
index e4df02fa3..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go
+++ /dev/null
@@ -1,7028 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertycc
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsCcPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsCcPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsCcProperty
-}
-
-// NewActivityStreamsCcPropertyIterator creates a new ActivityStreamsCc property.
-func NewActivityStreamsCcPropertyIterator() *ActivityStreamsCcPropertyIterator {
- return &ActivityStreamsCcPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsCcPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsCcPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsCcPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCcPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsCcPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsCcPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsCcPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsCcPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsCcPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsCcPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsCcPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsCcPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsCcPropertyIterator) 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 ActivityStreamsCcPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsCcPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCcPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsCc".
-func (this ActivityStreamsCcPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsCc"
- } else {
- return "ActivityStreamsCc"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsCcPropertyIterator) Next() vocab.ActivityStreamsCcPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsCcPropertyIterator) Prev() vocab.ActivityStreamsCcPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsCcPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsCc property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsCcPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsCcProperty is the non-functional property "cc". It is permitted
-// to have one or more values, and of different value types.
-type ActivityStreamsCcProperty struct {
- properties []*ActivityStreamsCcPropertyIterator
- alias string
-}
-
-// DeserializeCcProperty creates a "cc" property from an interface representation
-// that has been unmarshalled from a text or binary format.
-func DeserializeCcProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsCcProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "cc"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "cc")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsCcProperty{
- alias: alias,
- properties: []*ActivityStreamsCcPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsCcPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsCcPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsCcProperty creates a new cc property.
-func NewActivityStreamsCcProperty() *ActivityStreamsCcProperty {
- return &ActivityStreamsCcProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "cc". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "cc". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "cc". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "cc". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "cc". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "cc". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "cc". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "cc". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "cc". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "cc". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "cc". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsCcProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "cc"
-func (this *ActivityStreamsCcProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "cc". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsCcProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "cc". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsCcProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsCcProperty) At(index int) vocab.ActivityStreamsCcPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsCcProperty) Begin() vocab.ActivityStreamsCcPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsCcProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsCcProperty) End() vocab.ActivityStreamsCcPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "cc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "cc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "cc". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "cc". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "cc". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "cc". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "cc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "cc". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "cc". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "cc". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "cc". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "cc". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "cc". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "cc".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "cc". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "cc". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "cc". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsCcProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsCcProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsCcProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "cc" property.
-func (this ActivityStreamsCcProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsCcProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsCcProperty) LessThan(o vocab.ActivityStreamsCcProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("cc") with any alias.
-func (this ActivityStreamsCcProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "cc"
- } else {
- return "cc"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "cc". Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "cc". Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "cc".
-func (this *ActivityStreamsCcProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "cc". Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsCcPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "cc". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsCcProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsCcPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "cc", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsCcPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsCcProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "cc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "cc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "cc". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "cc". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "cc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "cc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "cc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "cc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "cc". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "cc". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "cc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "cc". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "cc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "cc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "cc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "cc". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "cc". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsCcProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "cc". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "cc".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsCcProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "cc". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsCcProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "cc". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsCcProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "cc". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsCcProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsCcPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "cc" property.
-func (this ActivityStreamsCcProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_pkg.go
deleted file mode 100644
index cc4ce57cc..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyclosed
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go
deleted file mode 100644
index ffe820f1b..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go
+++ /dev/null
@@ -1,7240 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyclosed
-
-import (
- "fmt"
- boolean "github.com/go-fed/activity/streams/values/boolean"
- datetime "github.com/go-fed/activity/streams/values/dateTime"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
- "time"
-)
-
-// ActivityStreamsClosedPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsClosedPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- xmlschemaDateTimeMember time.Time
- hasDateTimeMember bool
- xmlschemaBooleanMember bool
- hasBooleanMember bool
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsClosedProperty
-}
-
-// NewActivityStreamsClosedPropertyIterator creates a new ActivityStreamsClosed
-// property.
-func NewActivityStreamsClosedPropertyIterator() *ActivityStreamsClosedPropertyIterator {
- return &ActivityStreamsClosedPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsClosedPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsClosedPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- if v, err := datetime.DeserializeDateTime(i); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- hasDateTimeMember: true,
- xmlschemaDateTimeMember: v,
- }
- return this, nil
- } else if v, err := boolean.DeserializeBoolean(i); err == nil {
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- hasBooleanMember: true,
- xmlschemaBooleanMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsClosedPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// GetXMLSchemaBoolean returns the value of this property. When IsXMLSchemaBoolean
-// returns false, GetXMLSchemaBoolean will return an arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetXMLSchemaBoolean() bool {
- return this.xmlschemaBooleanMember
-}
-
-// GetXMLSchemaDateTime returns the value of this property. When
-// IsXMLSchemaDateTime returns false, GetXMLSchemaDateTime will return an
-// arbitrary value.
-func (this ActivityStreamsClosedPropertyIterator) GetXMLSchemaDateTime() time.Time {
- return this.xmlschemaDateTimeMember
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsClosedPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsXMLSchemaDateTime() ||
- this.IsXMLSchemaBoolean() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsClosedPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsClosedPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) 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 ActivityStreamsClosedPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// IsXMLSchemaBoolean returns true if this property has a type of "boolean". When
-// true, use the GetXMLSchemaBoolean and SetXMLSchemaBoolean methods to access
-// and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsXMLSchemaBoolean() bool {
- return this.hasBooleanMember
-}
-
-// IsXMLSchemaDateTime returns true if this property has a type of "dateTime".
-// When true, use the GetXMLSchemaDateTime and SetXMLSchemaDateTime methods to
-// access and set this property.
-func (this ActivityStreamsClosedPropertyIterator) IsXMLSchemaDateTime() bool {
- return this.hasDateTimeMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsClosedPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsXMLSchemaDateTime() {
- return 2
- }
- if this.IsXMLSchemaBoolean() {
- return 3
- }
- if this.IsActivityStreamsAccept() {
- return 4
- }
- if this.IsActivityStreamsActivity() {
- return 5
- }
- if this.IsActivityStreamsAdd() {
- return 6
- }
- if this.IsActivityStreamsAnnounce() {
- return 7
- }
- if this.IsActivityStreamsApplication() {
- return 8
- }
- if this.IsActivityStreamsArrive() {
- return 9
- }
- if this.IsActivityStreamsArticle() {
- return 10
- }
- if this.IsActivityStreamsAudio() {
- return 11
- }
- if this.IsActivityStreamsBlock() {
- return 12
- }
- if this.IsForgeFedBranch() {
- return 13
- }
- if this.IsActivityStreamsCollection() {
- return 14
- }
- if this.IsActivityStreamsCollectionPage() {
- return 15
- }
- if this.IsForgeFedCommit() {
- return 16
- }
- if this.IsActivityStreamsCreate() {
- return 17
- }
- if this.IsActivityStreamsDelete() {
- return 18
- }
- if this.IsActivityStreamsDislike() {
- return 19
- }
- if this.IsActivityStreamsDocument() {
- return 20
- }
- if this.IsTootEmoji() {
- return 21
- }
- if this.IsActivityStreamsEvent() {
- return 22
- }
- if this.IsActivityStreamsFlag() {
- return 23
- }
- if this.IsActivityStreamsFollow() {
- return 24
- }
- if this.IsActivityStreamsGroup() {
- return 25
- }
- if this.IsTootIdentityProof() {
- return 26
- }
- if this.IsActivityStreamsIgnore() {
- return 27
- }
- if this.IsActivityStreamsImage() {
- return 28
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 29
- }
- if this.IsActivityStreamsInvite() {
- return 30
- }
- if this.IsActivityStreamsJoin() {
- return 31
- }
- if this.IsActivityStreamsLeave() {
- return 32
- }
- if this.IsActivityStreamsLike() {
- return 33
- }
- if this.IsActivityStreamsListen() {
- return 34
- }
- if this.IsActivityStreamsMention() {
- return 35
- }
- if this.IsActivityStreamsMove() {
- return 36
- }
- if this.IsActivityStreamsNote() {
- return 37
- }
- if this.IsActivityStreamsOffer() {
- return 38
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 39
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 40
- }
- if this.IsActivityStreamsOrganization() {
- return 41
- }
- if this.IsActivityStreamsPage() {
- return 42
- }
- if this.IsActivityStreamsPerson() {
- return 43
- }
- if this.IsActivityStreamsPlace() {
- return 44
- }
- if this.IsActivityStreamsProfile() {
- return 45
- }
- if this.IsForgeFedPush() {
- return 46
- }
- if this.IsActivityStreamsQuestion() {
- return 47
- }
- if this.IsActivityStreamsRead() {
- return 48
- }
- if this.IsActivityStreamsReject() {
- return 49
- }
- if this.IsActivityStreamsRelationship() {
- return 50
- }
- if this.IsActivityStreamsRemove() {
- return 51
- }
- if this.IsForgeFedRepository() {
- return 52
- }
- if this.IsActivityStreamsService() {
- return 53
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 54
- }
- if this.IsActivityStreamsTentativeReject() {
- return 55
- }
- if this.IsForgeFedTicket() {
- return 56
- }
- if this.IsForgeFedTicketDependency() {
- return 57
- }
- if this.IsActivityStreamsTombstone() {
- return 58
- }
- if this.IsActivityStreamsTravel() {
- return 59
- }
- if this.IsActivityStreamsUndo() {
- return 60
- }
- if this.IsActivityStreamsUpdate() {
- return 61
- }
- if this.IsActivityStreamsVideo() {
- return 62
- }
- if this.IsActivityStreamsView() {
- return 63
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStreamsClosedPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsXMLSchemaDateTime() {
- return datetime.LessDateTime(this.GetXMLSchemaDateTime(), o.GetXMLSchemaDateTime())
- } else if this.IsXMLSchemaBoolean() {
- return boolean.LessBoolean(this.GetXMLSchemaBoolean(), o.GetXMLSchemaBoolean())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsClosed".
-func (this ActivityStreamsClosedPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsClosed"
- } else {
- return "ActivityStreamsClosed"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsClosedPropertyIterator) Next() vocab.ActivityStreamsClosedPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsClosedPropertyIterator) Prev() vocab.ActivityStreamsClosedPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsClosed property: %T", t)
-}
-
-// SetXMLSchemaBoolean sets the value of this property. Calling IsXMLSchemaBoolean
-// afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetXMLSchemaBoolean(v bool) {
- this.clear()
- this.xmlschemaBooleanMember = v
- this.hasBooleanMember = true
-}
-
-// SetXMLSchemaDateTime sets the value of this property. Calling
-// IsXMLSchemaDateTime afterwards returns true.
-func (this *ActivityStreamsClosedPropertyIterator) SetXMLSchemaDateTime(v time.Time) {
- this.clear()
- this.xmlschemaDateTimeMember = v
- this.hasDateTimeMember = true
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsClosedPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.hasDateTimeMember = false
- this.hasBooleanMember = false
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsXMLSchemaDateTime() {
- return datetime.SerializeDateTime(this.GetXMLSchemaDateTime())
- } else if this.IsXMLSchemaBoolean() {
- return boolean.SerializeBoolean(this.GetXMLSchemaBoolean())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsClosedProperty is the non-functional property "closed". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsClosedProperty struct {
- properties []*ActivityStreamsClosedPropertyIterator
- alias string
-}
-
-// DeserializeClosedProperty creates a "closed" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeClosedProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsClosedProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "closed"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "closed")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsClosedProperty{
- alias: alias,
- properties: []*ActivityStreamsClosedPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsClosedPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsClosedPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsClosedProperty creates a new closed property.
-func NewActivityStreamsClosedProperty() *ActivityStreamsClosedProperty {
- return &ActivityStreamsClosedProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "closed". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "closed". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "closed". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "closed". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "closed". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "closed". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "closed". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "closed". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "closed". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "closed". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "closed". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "closed". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsClosedProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "closed"
-func (this *ActivityStreamsClosedProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsClosedProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// AppendXMLSchemaBoolean appends a boolean value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendXMLSchemaBoolean(v bool) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- hasBooleanMember: true,
- myIdx: this.Len(),
- parent: this,
- xmlschemaBooleanMember: v,
- })
-}
-
-// AppendXMLSchemaDateTime appends a dateTime value to the back of a list of the
-// property "closed". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsClosedProperty) AppendXMLSchemaDateTime(v time.Time) {
- this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- hasDateTimeMember: true,
- myIdx: this.Len(),
- parent: this,
- xmlschemaDateTimeMember: v,
- })
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsClosedProperty) At(index int) vocab.ActivityStreamsClosedPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsClosedProperty) Begin() vocab.ActivityStreamsClosedPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsClosedProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsClosedProperty) End() vocab.ActivityStreamsClosedPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "closed". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "closed". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "closed". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "closed". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "closed". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "closed". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "closed". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "closed". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "closed". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "closed". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "closed". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "closed". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "closed". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "closed". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "closed". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "closed". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "closed". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "closed".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "closed". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "closed". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "closed". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsClosedProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// InsertXMLSchemaBoolean inserts a boolean value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertXMLSchemaBoolean(idx int, v bool) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- hasBooleanMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaBooleanMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertXMLSchemaDateTime inserts a dateTime value at the specified index for a
-// property "closed". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) InsertXMLSchemaDateTime(idx int, v time.Time) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- hasDateTimeMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaDateTimeMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsClosedProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsClosedProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "closed" property.
-func (this ActivityStreamsClosedProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsClosedProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetXMLSchemaDateTime()
- rhs := this.properties[j].GetXMLSchemaDateTime()
- return datetime.LessDateTime(lhs, rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetXMLSchemaBoolean()
- rhs := this.properties[j].GetXMLSchemaBoolean()
- return boolean.LessBoolean(lhs, rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 62 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 63 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsClosedProperty) LessThan(o vocab.ActivityStreamsClosedProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("closed") with any alias.
-func (this ActivityStreamsClosedProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "closed"
- } else {
- return "closed"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "closed". Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "closed". Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "closed".
-func (this *ActivityStreamsClosedProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "closed". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsClosedProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// PrependXMLSchemaBoolean prepends a boolean value to the front of a list of the
-// property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependXMLSchemaBoolean(v bool) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- hasBooleanMember: true,
- myIdx: 0,
- parent: this,
- xmlschemaBooleanMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependXMLSchemaDateTime prepends a dateTime value to the front of a list of
-// the property "closed". Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) PrependXMLSchemaDateTime(v time.Time) {
- this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
- alias: this.alias,
- hasDateTimeMember: true,
- myIdx: 0,
- parent: this,
- xmlschemaDateTimeMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "closed", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsClosedPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsClosedProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "closed". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "closed". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "closed". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "closed". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "closed". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "closed". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "closed". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "closed". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "closed". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "closed". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "closed". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "closed". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "closed". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "closed". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "closed". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "closed". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "closed". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsClosedProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "closed". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "closed". Panics if the index is out of bounds.
-func (this *ActivityStreamsClosedProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "closed". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "closed". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsClosedProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "closed". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsClosedProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// SetXMLSchemaBoolean sets a boolean value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetXMLSchemaBoolean(idx int, v bool) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- hasBooleanMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaBooleanMember: v,
- }
-}
-
-// SetXMLSchemaDateTime sets a dateTime value to be at the specified index for the
-// property "closed". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsClosedProperty) SetXMLSchemaDateTime(idx int, v time.Time) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
- alias: this.alias,
- hasDateTimeMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaDateTimeMember: v,
- }
-}
-
-// Swap swaps the location of values at two indices for the "closed" property.
-func (this ActivityStreamsClosedProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go
deleted file mode 100644
index 8e6b624ad..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go
+++ /dev/null
@@ -1,668 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertycontent
-
-import (
- "fmt"
- langstring "github.com/go-fed/activity/streams/values/langString"
- string1 "github.com/go-fed/activity/streams/values/string"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsContentPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsContentPropertyIterator struct {
- xmlschemaStringMember string
- hasStringMember bool
- rdfLangStringMember map[string]string
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsContentProperty
-}
-
-// NewActivityStreamsContentPropertyIterator creates a new ActivityStreamsContent
-// property.
-func NewActivityStreamsContentPropertyIterator() *ActivityStreamsContentPropertyIterator {
- return &ActivityStreamsContentPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsContentPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsContentPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsContentPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsContentPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := string1.DeserializeString(i); err == nil {
- this := &ActivityStreamsContentPropertyIterator{
- alias: alias,
- hasStringMember: true,
- xmlschemaStringMember: v,
- }
- return this, nil
- } else if v, err := langstring.DeserializeLangString(i); err == nil {
- this := &ActivityStreamsContentPropertyIterator{
- alias: alias,
- rdfLangStringMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsContentPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsContentPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetLanguage returns the value for the specified BCP47 language code, or an
-// empty string if it is either not a language map or no value is present.
-func (this ActivityStreamsContentPropertyIterator) GetLanguage(bcp47 string) string {
- if this.rdfLangStringMember == nil {
- return ""
- } else if v, ok := this.rdfLangStringMember[bcp47]; ok {
- return v
- } else {
- return ""
- }
-}
-
-// GetRDFLangString returns the value of this property. When IsRDFLangString
-// returns false, GetRDFLangString will return an arbitrary value.
-func (this ActivityStreamsContentPropertyIterator) GetRDFLangString() map[string]string {
- return this.rdfLangStringMember
-}
-
-// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString
-// returns false, GetXMLSchemaString will return an arbitrary value.
-func (this ActivityStreamsContentPropertyIterator) GetXMLSchemaString() string {
- return this.xmlschemaStringMember
-}
-
-// HasAny returns true if any of the values are set, except for the natural
-// language map. When true, the specific has, getter, and setter methods may
-// be used to determine what kind of value there is to access and set this
-// property. To determine if the property was set as a natural language map,
-// use the IsRDFLangString method instead.
-func (this ActivityStreamsContentPropertyIterator) HasAny() bool {
- return this.IsXMLSchemaString() ||
- this.IsRDFLangString() ||
- this.iri != nil
-}
-
-// HasLanguage returns true if the natural language map has an entry for the
-// specified BCP47 language code.
-func (this ActivityStreamsContentPropertyIterator) HasLanguage(bcp47 string) bool {
- if this.rdfLangStringMember == nil {
- return false
- } else {
- _, ok := this.rdfLangStringMember[bcp47]
- return ok
- }
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsContentPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsRDFLangString returns true if this property has a type of "langString". When
-// true, use the GetRDFLangString and SetRDFLangString methods to access and
-// set this property.. To determine if the property was set as a natural
-// language map, use the IsRDFLangString method instead.
-func (this ActivityStreamsContentPropertyIterator) IsRDFLangString() bool {
- return this.rdfLangStringMember != nil
-}
-
-// IsXMLSchemaString returns true if this property has a type of "string". When
-// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access
-// and set this property.. To determine if the property was set as a natural
-// language map, use the IsRDFLangString method instead.
-func (this ActivityStreamsContentPropertyIterator) IsXMLSchemaString() bool {
- return this.hasStringMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsContentPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsContentPropertyIterator) KindIndex() int {
- if this.IsXMLSchemaString() {
- return 0
- }
- if this.IsRDFLangString() {
- return 1
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsContentPropertyIterator) LessThan(o vocab.ActivityStreamsContentPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsXMLSchemaString() {
- return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString())
- } else if this.IsRDFLangString() {
- return langstring.LessLangString(this.GetRDFLangString(), o.GetRDFLangString())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsContent".
-func (this ActivityStreamsContentPropertyIterator) Name() string {
- if this.IsRDFLangString() {
- return "ActivityStreamsContentMap"
- } else {
- return "ActivityStreamsContent"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsContentPropertyIterator) Next() vocab.ActivityStreamsContentPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsContentPropertyIterator) Prev() vocab.ActivityStreamsContentPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsContentPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetLanguage sets the value for the specified BCP47 language code.
-func (this *ActivityStreamsContentPropertyIterator) SetLanguage(bcp47, value string) {
- this.hasStringMember = false
- this.rdfLangStringMember = nil
- this.unknown = nil
- this.iri = nil
- if this.rdfLangStringMember == nil {
- this.rdfLangStringMember = make(map[string]string)
- }
- this.rdfLangStringMember[bcp47] = value
-}
-
-// SetRDFLangString sets the value of this property and clears the natural
-// language map. Calling IsRDFLangString afterwards will return true. Calling
-// IsRDFLangString afterwards returns false.
-func (this *ActivityStreamsContentPropertyIterator) SetRDFLangString(v map[string]string) {
- this.clear()
- this.rdfLangStringMember = v
-}
-
-// SetXMLSchemaString sets the value of this property and clears the natural
-// language map. Calling IsXMLSchemaString afterwards will return true.
-// Calling IsRDFLangString afterwards returns false.
-func (this *ActivityStreamsContentPropertyIterator) SetXMLSchemaString(v string) {
- this.clear()
- this.xmlschemaStringMember = v
- this.hasStringMember = true
-}
-
-// clear ensures no value and no language map for this property is set. Calling
-// HasAny or any of the 'Is' methods afterwards will return false.
-func (this *ActivityStreamsContentPropertyIterator) clear() {
- this.hasStringMember = false
- this.rdfLangStringMember = nil
- this.unknown = nil
- this.iri = nil
- this.rdfLangStringMember = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsContentPropertyIterator) serialize() (interface{}, error) {
- if this.IsXMLSchemaString() {
- return string1.SerializeString(this.GetXMLSchemaString())
- } else if this.IsRDFLangString() {
- return langstring.SerializeLangString(this.GetRDFLangString())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsContentProperty is the non-functional property "content". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsContentProperty struct {
- properties []*ActivityStreamsContentPropertyIterator
- alias string
-}
-
-// DeserializeContentProperty creates a "content" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeContentProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContentProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "content"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "content")
- }
- i, ok := m[propName]
- if !ok {
- // Attempt to find the map instead.
- i, ok = m[propName+"Map"]
- }
- if ok {
- this := &ActivityStreamsContentProperty{
- alias: alias,
- properties: []*ActivityStreamsContentPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsContentPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsContentPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsContentProperty creates a new content property.
-func NewActivityStreamsContentProperty() *ActivityStreamsContentProperty {
- return &ActivityStreamsContentProperty{alias: ""}
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "content"
-func (this *ActivityStreamsContentProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsContentPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendRDFLangString appends a langString value to the back of a list of the
-// property "content". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContentProperty) AppendRDFLangString(v map[string]string) {
- this.properties = append(this.properties, &ActivityStreamsContentPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- rdfLangStringMember: v,
- })
-}
-
-// AppendXMLSchemaString appends a string value to the back of a list of the
-// property "content". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContentProperty) AppendXMLSchemaString(v string) {
- this.properties = append(this.properties, &ActivityStreamsContentPropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: this.Len(),
- parent: this,
- xmlschemaStringMember: v,
- })
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsContentProperty) At(index int) vocab.ActivityStreamsContentPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsContentProperty) Begin() vocab.ActivityStreamsContentPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsContentProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsContentProperty) End() vocab.ActivityStreamsContentPropertyIterator {
- return nil
-}
-
-// Insert inserts an IRI value at the specified index for a property "content".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsContentProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContentPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertRDFLangString inserts a langString value at the specified index for a
-// property "content". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContentProperty) InsertRDFLangString(idx int, v map[string]string) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- rdfLangStringMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertXMLSchemaString inserts a string value at the specified index for a
-// property "content". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContentProperty) InsertXMLSchemaString(idx int, v string) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContentPropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaStringMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsContentProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsContentProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "content" property.
-func (this ActivityStreamsContentProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsContentProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetXMLSchemaString()
- rhs := this.properties[j].GetXMLSchemaString()
- return string1.LessString(lhs, rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetRDFLangString()
- rhs := this.properties[j].GetRDFLangString()
- return langstring.LessLangString(lhs, rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsContentProperty) LessThan(o vocab.ActivityStreamsContentProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("content") with any alias.
-func (this ActivityStreamsContentProperty) Name() string {
- if this.Len() == 1 && this.At(0).IsRDFLangString() {
- return "contentMap"
- } else {
- return "content"
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "content".
-func (this *ActivityStreamsContentProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsContentPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependRDFLangString prepends a langString value to the front of a list of the
-// property "content". Invalidates all iterators.
-func (this *ActivityStreamsContentProperty) PrependRDFLangString(v map[string]string) {
- this.properties = append([]*ActivityStreamsContentPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- rdfLangStringMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependXMLSchemaString prepends a string value to the front of a list of the
-// property "content". Invalidates all iterators.
-func (this *ActivityStreamsContentProperty) PrependXMLSchemaString(v string) {
- this.properties = append([]*ActivityStreamsContentPropertyIterator{{
- alias: this.alias,
- hasStringMember: true,
- myIdx: 0,
- parent: this,
- xmlschemaStringMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "content", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContentProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsContentPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsContentProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "content". Panics if the index is out of bounds.
-func (this *ActivityStreamsContentProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContentPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetRDFLangString sets a langString value to be at the specified index for the
-// property "content". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContentProperty) SetRDFLangString(idx int, v map[string]string) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- rdfLangStringMember: v,
- }
-}
-
-// SetXMLSchemaString sets a string value to be at the specified index for the
-// property "content". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContentProperty) SetXMLSchemaString(idx int, v string) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContentPropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaStringMember: v,
- }
-}
-
-// Swap swaps the location of values at two indices for the "content" property.
-func (this ActivityStreamsContentProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_pkg.go
deleted file mode 100644
index 54bf7c06e..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertycontext
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go
deleted file mode 100644
index a173a4699..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go
+++ /dev/null
@@ -1,7042 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertycontext
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsContextPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsContextPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsContextProperty
-}
-
-// NewActivityStreamsContextPropertyIterator creates a new ActivityStreamsContext
-// property.
-func NewActivityStreamsContextPropertyIterator() *ActivityStreamsContextPropertyIterator {
- return &ActivityStreamsContextPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsContextPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsContextPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsContextPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsContextPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsContextPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsContextPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsContextPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsContextPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsContextPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsContextPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsContextPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsContextPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsContextPropertyIterator) 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 ActivityStreamsContextPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsContextPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStreamsContextPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsContext".
-func (this ActivityStreamsContextPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsContext"
- } else {
- return "ActivityStreamsContext"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsContextPropertyIterator) Next() vocab.ActivityStreamsContextPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsContextPropertyIterator) Prev() vocab.ActivityStreamsContextPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsContextPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsContext property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsContextPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsContextProperty is the non-functional property "context". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsContextProperty struct {
- properties []*ActivityStreamsContextPropertyIterator
- alias string
-}
-
-// DeserializeContextProperty creates a "context" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeContextProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsContextProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "context"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "context")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsContextProperty{
- alias: alias,
- properties: []*ActivityStreamsContextPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsContextPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsContextPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsContextProperty creates a new context property.
-func NewActivityStreamsContextProperty() *ActivityStreamsContextProperty {
- return &ActivityStreamsContextProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "context". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "context". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "context". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "context". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "context". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "context". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "context". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "context". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "context". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "context". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "context". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsContextProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "context"
-func (this *ActivityStreamsContextProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "context". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsContextProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "context". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsContextProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "context". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsContextProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsContextProperty) At(index int) vocab.ActivityStreamsContextPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsContextProperty) Begin() vocab.ActivityStreamsContextPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsContextProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsContextProperty) End() vocab.ActivityStreamsContextPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "context". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "context". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "context". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "context". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "context". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "context". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "context". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "context". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "context". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "context". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "context". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "context". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "context". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "context".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "context". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "context". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "context". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsContextProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsContextProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsContextProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "context" property.
-func (this ActivityStreamsContextProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsContextProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsContextProperty) LessThan(o vocab.ActivityStreamsContextProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("context") with any alias.
-func (this ActivityStreamsContextProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "context"
- } else {
- return "context"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "context". Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "context". Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "context".
-func (this *ActivityStreamsContextProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "context". Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsContextPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "context". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsContextProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsContextPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "context", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsContextPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsContextProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "context". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "context". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "context". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "context". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "context". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "context". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "context". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "context". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "context". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "context". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "context". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "context". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "context". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "context". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "context". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "context". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "context". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsContextProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "context". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsContextProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "context". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "context". Panics if the index is out of bounds.
-func (this *ActivityStreamsContextProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "context". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "context". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsContextProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "context". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsContextProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsContextPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "context" property.
-func (this ActivityStreamsContextProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_pkg.go
deleted file mode 100644
index c52916bdf..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertycurrent
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // 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)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go
deleted file mode 100644
index 0c9c6001e..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go
+++ /dev/null
@@ -1,359 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertycurrent
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsCurrentProperty is the functional property "current". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsCurrentProperty struct {
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeCurrentProperty creates a "current" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeCurrentProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsCurrentProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "current"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "current")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsCurrentProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCurrentProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCurrentProperty{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCurrentProperty{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsCurrentProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsCurrentProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsCurrentProperty creates a new current property.
-func NewActivityStreamsCurrentProperty() *ActivityStreamsCurrentProperty {
- return &ActivityStreamsCurrentProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsCurrentProperty) Clear() {
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsCurrentProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsCurrentProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsCurrentProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsCurrentProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsCurrentProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsCurrentProperty) GetType() vocab.Type {
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsCurrentProperty) HasAny() bool {
- return this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsCurrentProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsCurrentProperty) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsCurrentProperty) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsCurrentProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsCurrentProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsCurrentProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsCurrentProperty) KindIndex() int {
- if this.IsActivityStreamsCollectionPage() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsMention() {
- 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 ActivityStreamsCurrentProperty) LessThan(o vocab.ActivityStreamsCurrentProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "current".
-func (this ActivityStreamsCurrentProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "current"
- } else {
- return "current"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsCurrentProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsCurrentProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsCurrentProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.Clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsCurrentProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.Clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsCurrentProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsCurrentProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsCurrentProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on current property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go
deleted file mode 100644
index beb3f8ce7..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydeleted
-
-import (
- "fmt"
- datetime "github.com/go-fed/activity/streams/values/dateTime"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
- "time"
-)
-
-// ActivityStreamsDeletedProperty is the functional property "deleted". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsDeletedProperty struct {
- xmlschemaDateTimeMember time.Time
- hasDateTimeMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeDeletedProperty creates a "deleted" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeDeletedProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsDeletedProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "deleted"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "deleted")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsDeletedProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := datetime.DeserializeDateTime(i); err == nil {
- this := &ActivityStreamsDeletedProperty{
- alias: alias,
- hasDateTimeMember: true,
- xmlschemaDateTimeMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsDeletedProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsDeletedProperty creates a new deleted property.
-func NewActivityStreamsDeletedProperty() *ActivityStreamsDeletedProperty {
- return &ActivityStreamsDeletedProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime
-// afterwards will return false.
-func (this *ActivityStreamsDeletedProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasDateTimeMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaDateTime returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsDeletedProperty) Get() time.Time {
- return this.xmlschemaDateTimeMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsDeletedProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsDeletedProperty) HasAny() bool {
- return this.IsXMLSchemaDateTime() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsDeletedProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaDateTime returns true if this property is set and not an IRI.
-func (this ActivityStreamsDeletedProperty) IsXMLSchemaDateTime() bool {
- return this.hasDateTimeMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsDeletedProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsDeletedProperty) KindIndex() int {
- if this.IsXMLSchemaDateTime() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsDeletedProperty) LessThan(o vocab.ActivityStreamsDeletedProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return datetime.LessDateTime(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "deleted".
-func (this ActivityStreamsDeletedProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "deleted"
- } else {
- return "deleted"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsDeletedProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaDateTime() {
- return datetime.SerializeDateTime(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards
-// will return true.
-func (this *ActivityStreamsDeletedProperty) Set(v time.Time) {
- this.Clear()
- this.xmlschemaDateTimeMember = v
- this.hasDateTimeMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsDeletedProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_pkg.go
deleted file mode 100644
index 553d52a2d..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_pkg.go
+++ /dev/null
@@ -1,257 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydescribes
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go
deleted file mode 100644
index 1f66d6c09..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go
+++ /dev/null
@@ -1,2932 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertydescribes
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsDescribesProperty is the functional property "describes". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsDescribesProperty struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeDescribesProperty creates a "describes" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsDescribesProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "describes"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "describes")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsDescribesProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsDescribesProperty{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsDescribesProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsDescribesProperty creates a new describes property.
-func NewActivityStreamsDescribesProperty() *ActivityStreamsDescribesProperty {
- return &ActivityStreamsDescribesProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsDescribesProperty) Clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsDescribesProperty) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsDescribesProperty) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsDescribesProperty) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsDescribesProperty) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsDescribesProperty) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsDescribesProperty) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsDescribesProperty) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsDescribesProperty) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsDescribesProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsTootEmoji() bool {
- return this.tootEmojiMember != nil
-}
-
-// IsTootIdentityProof returns true if this property has a type of
-// "IdentityProof". When true, use the GetTootIdentityProof and
-// SetTootIdentityProof methods to access and set this property.
-func (this ActivityStreamsDescribesProperty) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsDescribesProperty) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsAccept() {
- return 1
- }
- if this.IsActivityStreamsActivity() {
- return 2
- }
- if this.IsActivityStreamsAdd() {
- return 3
- }
- if this.IsActivityStreamsAnnounce() {
- return 4
- }
- if this.IsActivityStreamsApplication() {
- return 5
- }
- if this.IsActivityStreamsArrive() {
- return 6
- }
- if this.IsActivityStreamsArticle() {
- return 7
- }
- if this.IsActivityStreamsAudio() {
- return 8
- }
- if this.IsActivityStreamsBlock() {
- return 9
- }
- if this.IsForgeFedBranch() {
- return 10
- }
- if this.IsActivityStreamsCollection() {
- return 11
- }
- if this.IsActivityStreamsCollectionPage() {
- return 12
- }
- if this.IsForgeFedCommit() {
- return 13
- }
- if this.IsActivityStreamsCreate() {
- return 14
- }
- if this.IsActivityStreamsDelete() {
- return 15
- }
- if this.IsActivityStreamsDislike() {
- return 16
- }
- if this.IsActivityStreamsDocument() {
- return 17
- }
- if this.IsTootEmoji() {
- return 18
- }
- if this.IsActivityStreamsEvent() {
- return 19
- }
- if this.IsActivityStreamsFlag() {
- return 20
- }
- if this.IsActivityStreamsFollow() {
- return 21
- }
- if this.IsActivityStreamsGroup() {
- return 22
- }
- if this.IsTootIdentityProof() {
- return 23
- }
- if this.IsActivityStreamsIgnore() {
- return 24
- }
- if this.IsActivityStreamsImage() {
- return 25
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 26
- }
- if this.IsActivityStreamsInvite() {
- return 27
- }
- if this.IsActivityStreamsJoin() {
- return 28
- }
- if this.IsActivityStreamsLeave() {
- return 29
- }
- if this.IsActivityStreamsLike() {
- return 30
- }
- if this.IsActivityStreamsListen() {
- return 31
- }
- if this.IsActivityStreamsMove() {
- return 32
- }
- if this.IsActivityStreamsNote() {
- return 33
- }
- if this.IsActivityStreamsOffer() {
- return 34
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 35
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 36
- }
- if this.IsActivityStreamsOrganization() {
- return 37
- }
- if this.IsActivityStreamsPage() {
- return 38
- }
- if this.IsActivityStreamsPerson() {
- return 39
- }
- if this.IsActivityStreamsPlace() {
- return 40
- }
- if this.IsActivityStreamsProfile() {
- return 41
- }
- if this.IsForgeFedPush() {
- return 42
- }
- if this.IsActivityStreamsQuestion() {
- return 43
- }
- if this.IsActivityStreamsRead() {
- return 44
- }
- if this.IsActivityStreamsReject() {
- return 45
- }
- if this.IsActivityStreamsRelationship() {
- return 46
- }
- if this.IsActivityStreamsRemove() {
- return 47
- }
- if this.IsForgeFedRepository() {
- return 48
- }
- if this.IsActivityStreamsService() {
- return 49
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 50
- }
- if this.IsActivityStreamsTentativeReject() {
- return 51
- }
- if this.IsForgeFedTicket() {
- return 52
- }
- if this.IsForgeFedTicketDependency() {
- return 53
- }
- if this.IsActivityStreamsTombstone() {
- return 54
- }
- if this.IsActivityStreamsTravel() {
- return 55
- }
- if this.IsActivityStreamsUndo() {
- return 56
- }
- if this.IsActivityStreamsUpdate() {
- return 57
- }
- if this.IsActivityStreamsVideo() {
- return 58
- }
- if this.IsActivityStreamsView() {
- return 59
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDescribesProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "describes".
-func (this ActivityStreamsDescribesProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "describes"
- } else {
- return "describes"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.Clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.Clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.Clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.Clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.Clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.Clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.Clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.Clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.Clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.Clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.Clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.Clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.Clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.Clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.Clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.Clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.Clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.Clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.Clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.Clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.Clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.Clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.Clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.Clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.Clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.Clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.Clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.Clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.Clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.Clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.Clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.Clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.Clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.Clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.Clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.Clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.Clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.Clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.Clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.Clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.Clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.Clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.Clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.Clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.Clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.Clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.Clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.Clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.Clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.Clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.Clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.Clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.Clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.Clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.Clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsDescribesProperty) SetTootEmoji(v vocab.TootEmoji) {
- this.Clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsDescribesProperty) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.Clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on describes property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go
deleted file mode 100644
index 556d583b3..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyduration
-
-import (
- "fmt"
- duration "github.com/go-fed/activity/streams/values/duration"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
- "time"
-)
-
-// ActivityStreamsDurationProperty is the functional property "duration". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsDurationProperty struct {
- xmlschemaDurationMember time.Duration
- hasDurationMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeDurationProperty creates a "duration" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeDurationProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsDurationProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "duration"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "duration")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsDurationProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := duration.DeserializeDuration(i); err == nil {
- this := &ActivityStreamsDurationProperty{
- alias: alias,
- hasDurationMember: true,
- xmlschemaDurationMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsDurationProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsDurationProperty creates a new duration property.
-func NewActivityStreamsDurationProperty() *ActivityStreamsDurationProperty {
- return &ActivityStreamsDurationProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaDuration
-// afterwards will return false.
-func (this *ActivityStreamsDurationProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasDurationMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaDuration returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsDurationProperty) Get() time.Duration {
- return this.xmlschemaDurationMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsDurationProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsDurationProperty) HasAny() bool {
- return this.IsXMLSchemaDuration() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsDurationProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaDuration returns true if this property is set and not an IRI.
-func (this ActivityStreamsDurationProperty) IsXMLSchemaDuration() bool {
- return this.hasDurationMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsDurationProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsDurationProperty) KindIndex() int {
- if this.IsXMLSchemaDuration() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsDurationProperty) LessThan(o vocab.ActivityStreamsDurationProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaDuration() && !o.IsXMLSchemaDuration() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaDuration() && !o.IsXMLSchemaDuration() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaDuration() && o.IsXMLSchemaDuration() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return duration.LessDuration(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "duration".
-func (this ActivityStreamsDurationProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "duration"
- } else {
- return "duration"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsDurationProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaDuration() {
- return duration.SerializeDuration(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaDuration afterwards
-// will return true.
-func (this *ActivityStreamsDurationProperty) Set(v time.Duration) {
- this.Clear()
- this.xmlschemaDurationMember = v
- this.hasDurationMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsDurationProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go
deleted file mode 100644
index 9e89dafb8..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyendtime
-
-import (
- "fmt"
- datetime "github.com/go-fed/activity/streams/values/dateTime"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
- "time"
-)
-
-// ActivityStreamsEndTimeProperty is the functional property "endTime". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsEndTimeProperty struct {
- xmlschemaDateTimeMember time.Time
- hasDateTimeMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeEndTimeProperty creates a "endTime" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeEndTimeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsEndTimeProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "endTime"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "endTime")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsEndTimeProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := datetime.DeserializeDateTime(i); err == nil {
- this := &ActivityStreamsEndTimeProperty{
- alias: alias,
- hasDateTimeMember: true,
- xmlschemaDateTimeMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsEndTimeProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsEndTimeProperty creates a new endTime property.
-func NewActivityStreamsEndTimeProperty() *ActivityStreamsEndTimeProperty {
- return &ActivityStreamsEndTimeProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime
-// afterwards will return false.
-func (this *ActivityStreamsEndTimeProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasDateTimeMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaDateTime returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsEndTimeProperty) Get() time.Time {
- return this.xmlschemaDateTimeMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsEndTimeProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsEndTimeProperty) HasAny() bool {
- return this.IsXMLSchemaDateTime() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsEndTimeProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaDateTime returns true if this property is set and not an IRI.
-func (this ActivityStreamsEndTimeProperty) IsXMLSchemaDateTime() bool {
- return this.hasDateTimeMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsEndTimeProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsEndTimeProperty) KindIndex() int {
- if this.IsXMLSchemaDateTime() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsEndTimeProperty) LessThan(o vocab.ActivityStreamsEndTimeProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return datetime.LessDateTime(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "endTime".
-func (this ActivityStreamsEndTimeProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "endTime"
- } else {
- return "endTime"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsEndTimeProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaDateTime() {
- return datetime.SerializeDateTime(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards
-// will return true.
-func (this *ActivityStreamsEndTimeProperty) Set(v time.Time) {
- this.Clear()
- this.xmlschemaDateTimeMember = v
- this.hasDateTimeMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsEndTimeProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_pkg.go
deleted file mode 100644
index 1e738bb60..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyfirst
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // 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)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go
deleted file mode 100644
index d63164b87..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go
+++ /dev/null
@@ -1,359 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyfirst
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsFirstProperty is the functional property "first". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsFirstProperty struct {
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeFirstProperty creates a "first" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeFirstProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsFirstProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "first"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "first")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsFirstProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFirstProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFirstProperty{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFirstProperty{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFirstProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsFirstProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsFirstProperty creates a new first property.
-func NewActivityStreamsFirstProperty() *ActivityStreamsFirstProperty {
- return &ActivityStreamsFirstProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsFirstProperty) Clear() {
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsFirstProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsFirstProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsFirstProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsFirstProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsFirstProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsFirstProperty) GetType() vocab.Type {
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsFirstProperty) HasAny() bool {
- return this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsFirstProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsFirstProperty) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsFirstProperty) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsFirstProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsFirstProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsFirstProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsFirstProperty) KindIndex() int {
- if this.IsActivityStreamsCollectionPage() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsMention() {
- 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 ActivityStreamsFirstProperty) LessThan(o vocab.ActivityStreamsFirstProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "first".
-func (this ActivityStreamsFirstProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "first"
- } else {
- return "first"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsFirstProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsFirstProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsFirstProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.Clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsFirstProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.Clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsFirstProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsFirstProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsFirstProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on first property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_pkg.go
deleted file mode 100644
index 01d7ea18b..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyfollowers
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go
deleted file mode 100644
index 19eb0a6c9..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go
+++ /dev/null
@@ -1,360 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyfollowers
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsFollowersProperty is the functional property "followers". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsFollowersProperty struct {
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeFollowersProperty creates a "followers" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeFollowersProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsFollowersProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "followers"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "followers")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsFollowersProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFollowersProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFollowersProperty{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFollowersProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFollowersProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsFollowersProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsFollowersProperty creates a new followers property.
-func NewActivityStreamsFollowersProperty() *ActivityStreamsFollowersProperty {
- return &ActivityStreamsFollowersProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsFollowersProperty) Clear() {
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsFollowersProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsFollowersProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsFollowersProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsFollowersProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsFollowersProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsFollowersProperty) GetType() vocab.Type {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsFollowersProperty) HasAny() bool {
- return this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsFollowersProperty) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsFollowersProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsFollowersProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsFollowersProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsFollowersProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsFollowersProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsFollowersProperty) KindIndex() int {
- if this.IsActivityStreamsOrderedCollection() {
- return 0
- }
- if this.IsActivityStreamsCollection() {
- return 1
- }
- if this.IsActivityStreamsCollectionPage() {
- return 2
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 3
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsFollowersProperty) LessThan(o vocab.ActivityStreamsFollowersProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "followers".
-func (this ActivityStreamsFollowersProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "followers"
- } else {
- return "followers"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsFollowersProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsFollowersProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.Clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsFollowersProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsFollowersProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsFollowersProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsFollowersProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsFollowersProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on followers property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_pkg.go
deleted file mode 100644
index 632b76f3f..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyfollowing
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go
deleted file mode 100644
index 31a1edfc9..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go
+++ /dev/null
@@ -1,360 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyfollowing
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsFollowingProperty is the functional property "following". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsFollowingProperty struct {
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeFollowingProperty creates a "following" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeFollowingProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsFollowingProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "following"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "following")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsFollowingProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFollowingProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFollowingProperty{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFollowingProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFollowingProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsFollowingProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsFollowingProperty creates a new following property.
-func NewActivityStreamsFollowingProperty() *ActivityStreamsFollowingProperty {
- return &ActivityStreamsFollowingProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsFollowingProperty) Clear() {
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsFollowingProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsFollowingProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsFollowingProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsFollowingProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsFollowingProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsFollowingProperty) GetType() vocab.Type {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsFollowingProperty) HasAny() bool {
- return this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsFollowingProperty) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsFollowingProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsFollowingProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsFollowingProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsFollowingProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsFollowingProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsFollowingProperty) KindIndex() int {
- if this.IsActivityStreamsOrderedCollection() {
- return 0
- }
- if this.IsActivityStreamsCollection() {
- return 1
- }
- if this.IsActivityStreamsCollectionPage() {
- return 2
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 3
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsFollowingProperty) LessThan(o vocab.ActivityStreamsFollowingProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "following".
-func (this ActivityStreamsFollowingProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "following"
- } else {
- return "following"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsFollowingProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsFollowingProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.Clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsFollowingProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsFollowingProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsFollowingProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsFollowingProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsFollowingProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on following property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go
deleted file mode 100644
index 899db00d8..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go
+++ /dev/null
@@ -1,257 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyformertype
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go
deleted file mode 100644
index d4dd9bb70..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go
+++ /dev/null
@@ -1,6940 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyformertype
-
-import (
- "fmt"
- string1 "github.com/go-fed/activity/streams/values/string"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsFormerTypePropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsFormerTypePropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- xmlschemaStringMember string
- hasStringMember bool
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsFormerTypeProperty
-}
-
-// NewActivityStreamsFormerTypePropertyIterator creates a new
-// ActivityStreamsFormerType property.
-func NewActivityStreamsFormerTypePropertyIterator() *ActivityStreamsFormerTypePropertyIterator {
- return &ActivityStreamsFormerTypePropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsFormerTypePropertyIterator creates an iterator from
-// an element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsFormerTypePropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- if v, err := string1.DeserializeString(i); err == nil {
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- hasStringMember: true,
- xmlschemaStringMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsFormerTypePropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString
-// returns false, GetXMLSchemaString will return an arbitrary value.
-func (this ActivityStreamsFormerTypePropertyIterator) GetXMLSchemaString() string {
- return this.xmlschemaStringMember
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsXMLSchemaString() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsFormerTypePropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsTootEmoji() bool {
- return this.tootEmojiMember != nil
-}
-
-// IsTootIdentityProof returns true if this property has a type of
-// "IdentityProof". When true, use the GetTootIdentityProof and
-// SetTootIdentityProof methods to access and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// IsXMLSchemaString returns true if this property has a type of "string". When
-// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access
-// and set this property.
-func (this ActivityStreamsFormerTypePropertyIterator) IsXMLSchemaString() bool {
- return this.hasStringMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsXMLSchemaString() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.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.IsActivityStreamsMove() {
- return 33
- }
- if this.IsActivityStreamsNote() {
- return 34
- }
- if this.IsActivityStreamsOffer() {
- return 35
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 37
- }
- if this.IsActivityStreamsOrganization() {
- return 38
- }
- if this.IsActivityStreamsPage() {
- return 39
- }
- if this.IsActivityStreamsPerson() {
- return 40
- }
- if this.IsActivityStreamsPlace() {
- return 41
- }
- if this.IsActivityStreamsProfile() {
- 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 ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityStreamsFormerTypePropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsXMLSchemaString() {
- return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsFormerType".
-func (this ActivityStreamsFormerTypePropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsFormerType"
- } else {
- return "ActivityStreamsFormerType"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsFormerTypePropertyIterator) Next() vocab.ActivityStreamsFormerTypePropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsFormerTypePropertyIterator) Prev() vocab.ActivityStreamsFormerTypePropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsFormerType property: %T", t)
-}
-
-// SetXMLSchemaString sets the value of this property. Calling IsXMLSchemaString
-// afterwards returns true.
-func (this *ActivityStreamsFormerTypePropertyIterator) SetXMLSchemaString(v string) {
- this.clear()
- this.xmlschemaStringMember = v
- this.hasStringMember = true
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsFormerTypePropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.hasStringMember = false
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsXMLSchemaString() {
- return string1.SerializeString(this.GetXMLSchemaString())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsFormerTypeProperty is the non-functional property "formerType".
-// It is permitted to have one or more values, and of different value types.
-type ActivityStreamsFormerTypeProperty struct {
- properties []*ActivityStreamsFormerTypePropertyIterator
- alias string
-}
-
-// DeserializeFormerTypeProperty creates a "formerType" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeFormerTypeProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsFormerTypeProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "formerType"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "formerType")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsFormerTypeProperty{
- alias: alias,
- properties: []*ActivityStreamsFormerTypePropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsFormerTypePropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsFormerTypePropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsFormerTypeProperty creates a new formerType property.
-func NewActivityStreamsFormerTypeProperty() *ActivityStreamsFormerTypeProperty {
- return &ActivityStreamsFormerTypeProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "formerType". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "formerType". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "formerType". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "formerType". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "formerType". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "formerType". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "formerType". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "formerType". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "formerType". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "formerType". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "formerType". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "formerType". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "formerType". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "formerType". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "formerType". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "formerType". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "formerType". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "formerType". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "formerType". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "formerType". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "formerType". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property
-// "formerType"
-func (this *ActivityStreamsFormerTypeProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "formerType". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "formerType". Invalidates iterators that are traversing using
-// Prev. Returns an error if the type is not a valid one to set for this
-// property.
-func (this *ActivityStreamsFormerTypeProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// AppendXMLSchemaString appends a string value to the back of a list of the
-// property "formerType". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsFormerTypeProperty) AppendXMLSchemaString(v string) {
- this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: this.Len(),
- parent: this,
- xmlschemaStringMember: v,
- })
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsFormerTypeProperty) At(index int) vocab.ActivityStreamsFormerTypePropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsFormerTypeProperty) Begin() vocab.ActivityStreamsFormerTypePropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsFormerTypeProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsFormerTypeProperty) End() vocab.ActivityStreamsFormerTypePropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "formerType". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "formerType". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "formerType". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "formerType". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "formerType". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "formerType". Existing elements
-// at that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "formerType". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "formerType". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "formerType". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "formerType". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "formerType". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "formerType". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "formerType".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "formerType". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "formerType". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsFormerTypeProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// InsertXMLSchemaString inserts a string value at the specified index for a
-// property "formerType". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) InsertXMLSchemaString(idx int, v string) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaStringMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsFormerTypeProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsFormerTypeProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "formerType" property.
-func (this ActivityStreamsFormerTypeProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetXMLSchemaString()
- rhs := this.properties[j].GetXMLSchemaString()
- return string1.LessString(lhs, rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].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].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- 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 ActivityStreamsFormerTypeProperty) LessThan(o vocab.ActivityStreamsFormerTypeProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("formerType") with any alias.
-func (this ActivityStreamsFormerTypeProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "formerType"
- } else {
- return "formerType"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "formerType". Invalidates all
-// iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "formerType". Invalidates all
-// iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "formerType".
-func (this *ActivityStreamsFormerTypeProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "formerType". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsFormerTypeProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// PrependXMLSchemaString prepends a string value to the front of a list of the
-// property "formerType". Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) PrependXMLSchemaString(v string) {
- this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
- alias: this.alias,
- hasStringMember: true,
- myIdx: 0,
- parent: this,
- xmlschemaStringMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "formerType", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsFormerTypePropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsFormerTypeProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "formerType". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "formerType". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "formerType". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "formerType". Panics if the
-// index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "formerType". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "formerType". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "formerType". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "formerType". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "formerType". Panics if the index is out of bounds.
-func (this *ActivityStreamsFormerTypeProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "formerType". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "formerType". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "formerType". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property. Panics if the index is out of
-// bounds.
-func (this *ActivityStreamsFormerTypeProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// SetXMLSchemaString sets a string value to be at the specified index for the
-// property "formerType". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsFormerTypeProperty) SetXMLSchemaString(idx int, v string) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaStringMember: v,
- }
-}
-
-// Swap swaps the location of values at two indices for the "formerType" property.
-func (this ActivityStreamsFormerTypeProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_pkg.go
deleted file mode 100644
index b388dfef7..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertygenerator
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go
deleted file mode 100644
index 074ed84d6..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go
+++ /dev/null
@@ -1,7044 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertygenerator
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsGeneratorPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsGeneratorPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsGeneratorProperty
-}
-
-// NewActivityStreamsGeneratorPropertyIterator creates a new
-// ActivityStreamsGenerator property.
-func NewActivityStreamsGeneratorPropertyIterator() *ActivityStreamsGeneratorPropertyIterator {
- return &ActivityStreamsGeneratorPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsGeneratorPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsGeneratorPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsGeneratorPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsGeneratorPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsGeneratorPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsGeneratorPropertyIterator) 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 ActivityStreamsGeneratorPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsGeneratorPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivityStreamsGeneratorPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsGenerator".
-func (this ActivityStreamsGeneratorPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsGenerator"
- } else {
- return "ActivityStreamsGenerator"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsGeneratorPropertyIterator) Next() vocab.ActivityStreamsGeneratorPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsGeneratorPropertyIterator) Prev() vocab.ActivityStreamsGeneratorPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsGenerator property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsGeneratorPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsGeneratorProperty is the non-functional property "generator". It
-// is permitted to have one or more values, and of different value types.
-type ActivityStreamsGeneratorProperty struct {
- properties []*ActivityStreamsGeneratorPropertyIterator
- alias string
-}
-
-// DeserializeGeneratorProperty creates a "generator" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeGeneratorProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "generator"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "generator")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsGeneratorProperty{
- alias: alias,
- properties: []*ActivityStreamsGeneratorPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsGeneratorPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsGeneratorPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsGeneratorProperty creates a new generator property.
-func NewActivityStreamsGeneratorProperty() *ActivityStreamsGeneratorProperty {
- return &ActivityStreamsGeneratorProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "generator". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "generator". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "generator". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "generator". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "generator". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "generator". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "generator". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "generator". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "generator". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "generator". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "generator". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "generator". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "generator"
-func (this *ActivityStreamsGeneratorProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "generator". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "generator". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsGeneratorProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "generator". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsGeneratorProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsGeneratorProperty) At(index int) vocab.ActivityStreamsGeneratorPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsGeneratorProperty) Begin() vocab.ActivityStreamsGeneratorPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsGeneratorProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsGeneratorProperty) End() vocab.ActivityStreamsGeneratorPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "generator". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "generator". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "generator". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "generator". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "generator". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "generator". Existing elements
-// at that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "generator". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "generator". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "generator". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "generator". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "generator". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "generator". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "generator".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "generator". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "generator". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "generator". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsGeneratorProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsGeneratorProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsGeneratorProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "generator" property.
-func (this ActivityStreamsGeneratorProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsGeneratorProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsGeneratorProperty) LessThan(o vocab.ActivityStreamsGeneratorProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("generator") with any alias.
-func (this ActivityStreamsGeneratorProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "generator"
- } else {
- return "generator"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "generator". Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "generator". Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "generator".
-func (this *ActivityStreamsGeneratorProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "generator". Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "generator". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsGeneratorProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "generator", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsGeneratorPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsGeneratorProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "generator". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "generator". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "generator". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "generator". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "generator". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "generator". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "generator". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "generator". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "generator". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "generator". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "generator". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "generator". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "generator". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "generator". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "generator". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "generator". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "generator". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "generator". Panics if the index is out of bounds.
-func (this *ActivityStreamsGeneratorProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "generator". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsGeneratorProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "generator". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsGeneratorProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "generator". Invalidates all iterators. Returns an error if the type is not
-// a valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsGeneratorProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsGeneratorPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "generator" property.
-func (this ActivityStreamsGeneratorProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go
deleted file mode 100644
index c467bd65a..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyheight
-
-import (
- "fmt"
- nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsHeightProperty is the functional property "height". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsHeightProperty struct {
- xmlschemaNonNegativeIntegerMember int
- hasNonNegativeIntegerMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeHeightProperty creates a "height" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeHeightProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsHeightProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "height"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "height")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsHeightProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil {
- this := &ActivityStreamsHeightProperty{
- alias: alias,
- hasNonNegativeIntegerMember: true,
- xmlschemaNonNegativeIntegerMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsHeightProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsHeightProperty creates a new height property.
-func NewActivityStreamsHeightProperty() *ActivityStreamsHeightProperty {
- return &ActivityStreamsHeightProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling
-// IsXMLSchemaNonNegativeInteger afterwards will return false.
-func (this *ActivityStreamsHeightProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasNonNegativeIntegerMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger
-// returns false, Get will return any arbitrary value.
-func (this ActivityStreamsHeightProperty) Get() int {
- return this.xmlschemaNonNegativeIntegerMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsHeightProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsHeightProperty) HasAny() bool {
- return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsHeightProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an
-// IRI.
-func (this ActivityStreamsHeightProperty) IsXMLSchemaNonNegativeInteger() bool {
- return this.hasNonNegativeIntegerMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsHeightProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsHeightProperty) KindIndex() int {
- if this.IsXMLSchemaNonNegativeInteger() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsHeightProperty) LessThan(o vocab.ActivityStreamsHeightProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "height".
-func (this ActivityStreamsHeightProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "height"
- } else {
- return "height"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsHeightProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaNonNegativeInteger() {
- return nonnegativeinteger.SerializeNonNegativeInteger(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger
-// afterwards will return true.
-func (this *ActivityStreamsHeightProperty) Set(v int) {
- this.Clear()
- this.xmlschemaNonNegativeIntegerMember = v
- this.hasNonNegativeIntegerMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsHeightProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go
deleted file mode 100644
index 3cd3ad8b2..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go
+++ /dev/null
@@ -1,181 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyhref
-
-import (
- "fmt"
- anyuri "github.com/go-fed/activity/streams/values/anyURI"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsHrefProperty is the functional property "href". It is permitted
-// to be a single nilable value type.
-type ActivityStreamsHrefProperty struct {
- xmlschemaAnyURIMember *url.URL
- unknown interface{}
- alias string
-}
-
-// DeserializeHrefProperty creates a "href" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeHrefProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsHrefProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "href"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "href")
- }
- i, ok := m[propName]
-
- if ok {
- if v, err := anyuri.DeserializeAnyURI(i); err == nil {
- this := &ActivityStreamsHrefProperty{
- alias: alias,
- xmlschemaAnyURIMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsHrefProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsHrefProperty creates a new href property.
-func NewActivityStreamsHrefProperty() *ActivityStreamsHrefProperty {
- return &ActivityStreamsHrefProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI
-// afterwards will return false.
-func (this *ActivityStreamsHrefProperty) Clear() {
- this.unknown = nil
- this.xmlschemaAnyURIMember = nil
-}
-
-// Get returns the value of this property. When IsXMLSchemaAnyURI returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsHrefProperty) Get() *url.URL {
- return this.xmlschemaAnyURIMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsHrefProperty) GetIRI() *url.URL {
- return this.xmlschemaAnyURIMember
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsHrefProperty) HasAny() bool {
- return this.IsXMLSchemaAnyURI()
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsHrefProperty) IsIRI() bool {
- return this.xmlschemaAnyURIMember != nil
-}
-
-// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
-func (this ActivityStreamsHrefProperty) IsXMLSchemaAnyURI() bool {
- return this.xmlschemaAnyURIMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsHrefProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsHrefProperty) KindIndex() int {
- if this.IsXMLSchemaAnyURI() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsHrefProperty) LessThan(o vocab.ActivityStreamsHrefProperty) bool {
- if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return anyuri.LessAnyURI(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "href".
-func (this ActivityStreamsHrefProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "href"
- } else {
- return "href"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsHrefProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaAnyURI() {
- return anyuri.SerializeAnyURI(this.Get())
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will
-// return true.
-func (this *ActivityStreamsHrefProperty) Set(v *url.URL) {
- this.Clear()
- this.xmlschemaAnyURIMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsHrefProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.Set(v)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go
deleted file mode 100644
index a87c7da6b..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyhreflang
-
-import (
- "fmt"
- bcp47 "github.com/go-fed/activity/streams/values/bcp47"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsHreflangProperty is the functional property "hreflang". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsHreflangProperty struct {
- rfcBcp47Member string
- hasBcp47Member bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeHreflangProperty creates a "hreflang" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeHreflangProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsHreflangProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "hreflang"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "hreflang")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsHreflangProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := bcp47.DeserializeBcp47(i); err == nil {
- this := &ActivityStreamsHreflangProperty{
- alias: alias,
- hasBcp47Member: true,
- rfcBcp47Member: v,
- }
- return this, nil
- }
- this := &ActivityStreamsHreflangProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsHreflangProperty creates a new hreflang property.
-func NewActivityStreamsHreflangProperty() *ActivityStreamsHreflangProperty {
- return &ActivityStreamsHreflangProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsRFCBcp47 afterwards
-// will return false.
-func (this *ActivityStreamsHreflangProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasBcp47Member = false
-}
-
-// Get returns the value of this property. When IsRFCBcp47 returns false, Get will
-// return any arbitrary value.
-func (this ActivityStreamsHreflangProperty) Get() string {
- return this.rfcBcp47Member
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsHreflangProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsHreflangProperty) HasAny() bool {
- return this.IsRFCBcp47() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsHreflangProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsRFCBcp47 returns true if this property is set and not an IRI.
-func (this ActivityStreamsHreflangProperty) IsRFCBcp47() bool {
- return this.hasBcp47Member
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsHreflangProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsHreflangProperty) KindIndex() int {
- if this.IsRFCBcp47() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsHreflangProperty) LessThan(o vocab.ActivityStreamsHreflangProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsRFCBcp47() && !o.IsRFCBcp47() {
- // Both are unknowns.
- return false
- } else if this.IsRFCBcp47() && !o.IsRFCBcp47() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsRFCBcp47() && o.IsRFCBcp47() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return bcp47.LessBcp47(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "hreflang".
-func (this ActivityStreamsHreflangProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "hreflang"
- } else {
- return "hreflang"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsHreflangProperty) Serialize() (interface{}, error) {
- if this.IsRFCBcp47() {
- return bcp47.SerializeBcp47(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsRFCBcp47 afterwards will return
-// true.
-func (this *ActivityStreamsHreflangProperty) Set(v string) {
- this.Clear()
- this.rfcBcp47Member = v
- this.hasBcp47Member = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsHreflangProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_pkg.go
deleted file mode 100644
index f2cae8533..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_pkg.go
+++ /dev/null
@@ -1,30 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyicon
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go
deleted file mode 100644
index 7d1b7b868..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go
+++ /dev/null
@@ -1,824 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyicon
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsIconPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsIconPropertyIterator struct {
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsMentionMember vocab.ActivityStreamsMention
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsIconProperty
-}
-
-// NewActivityStreamsIconPropertyIterator creates a new ActivityStreamsIcon
-// property.
-func NewActivityStreamsIconPropertyIterator() *ActivityStreamsIconPropertyIterator {
- return &ActivityStreamsIconPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsIconPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsIconPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsIconPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsIconPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsIconPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsIconPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsIconPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsIconPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsIconPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsIconPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsIconPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsIconPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsIconPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsIconPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsImage() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsMention() ||
- this.iri != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsIconPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsIconPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsIconPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsIconPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsIconPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsIconPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsImage() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsMention() {
- return 2
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsIconPropertyIterator) LessThan(o vocab.ActivityStreamsIconPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsIcon".
-func (this ActivityStreamsIconPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsIcon"
- } else {
- return "ActivityStreamsIcon"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsIconPropertyIterator) Next() vocab.ActivityStreamsIconPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsIconPropertyIterator) Prev() vocab.ActivityStreamsIconPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsIconPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsIconPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsIconPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsIconPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsIconPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsIcon property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsIconPropertyIterator) clear() {
- this.activitystreamsImageMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsMentionMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsIconPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsIconProperty is the non-functional property "icon". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsIconProperty struct {
- properties []*ActivityStreamsIconPropertyIterator
- alias string
-}
-
-// DeserializeIconProperty creates a "icon" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeIconProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsIconProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "icon"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "icon")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsIconProperty{
- alias: alias,
- properties: []*ActivityStreamsIconPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsIconPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsIconPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsIconProperty creates a new icon property.
-func NewActivityStreamsIconProperty() *ActivityStreamsIconProperty {
- return &ActivityStreamsIconProperty{alias: ""}
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "icon". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsIconProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "icon". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsIconProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "icon". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsIconProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "icon"
-func (this *ActivityStreamsIconProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "icon". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsIconProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsIconPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsIconProperty) At(index int) vocab.ActivityStreamsIconPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsIconProperty) Begin() vocab.ActivityStreamsIconPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsIconProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsIconProperty) End() vocab.ActivityStreamsIconPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "icon". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsIconProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsIconPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "icon". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsIconProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsIconPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "icon". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsIconProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsIconPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "icon".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsIconProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsIconPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "icon". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsIconProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsIconPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsIconProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsIconProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "icon" property.
-func (this ActivityStreamsIconProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsIconProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsIconProperty) LessThan(o vocab.ActivityStreamsIconProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("icon") with any alias.
-func (this ActivityStreamsIconProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "icon"
- } else {
- return "icon"
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "icon". Invalidates all iterators.
-func (this *ActivityStreamsIconProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsIconPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "icon". Invalidates all iterators.
-func (this *ActivityStreamsIconProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsIconPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "icon". Invalidates all iterators.
-func (this *ActivityStreamsIconProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsIconPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "icon".
-func (this *ActivityStreamsIconProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsIconPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "icon". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsIconProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsIconPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsIconPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "icon", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsIconProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsIconPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsIconProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "icon". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsIconProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsIconPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "icon". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsIconProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsIconPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "icon". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsIconProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsIconPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "icon".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsIconProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsIconPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "icon". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsIconProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsIconPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "icon" property.
-func (this ActivityStreamsIconProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_pkg.go
deleted file mode 100644
index 7451bcb23..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_pkg.go
+++ /dev/null
@@ -1,30 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyimage
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go
deleted file mode 100644
index 6c971cc5a..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go
+++ /dev/null
@@ -1,824 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyimage
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsImagePropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsImagePropertyIterator struct {
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsMentionMember vocab.ActivityStreamsMention
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsImageProperty
-}
-
-// NewActivityStreamsImagePropertyIterator creates a new ActivityStreamsImage
-// property.
-func NewActivityStreamsImagePropertyIterator() *ActivityStreamsImagePropertyIterator {
- return &ActivityStreamsImagePropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsImagePropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsImagePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsImagePropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsImagePropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsImagePropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsImagePropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsImagePropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsImagePropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsImagePropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsImagePropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsImagePropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsImagePropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsImagePropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsImagePropertyIterator) HasAny() bool {
- return this.IsActivityStreamsImage() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsMention() ||
- this.iri != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsImagePropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsImagePropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsImagePropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsImagePropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsImagePropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsImagePropertyIterator) KindIndex() int {
- if this.IsActivityStreamsImage() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsMention() {
- return 2
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsImagePropertyIterator) LessThan(o vocab.ActivityStreamsImagePropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsImage".
-func (this ActivityStreamsImagePropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsImage"
- } else {
- return "ActivityStreamsImage"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsImagePropertyIterator) Next() vocab.ActivityStreamsImagePropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsImagePropertyIterator) Prev() vocab.ActivityStreamsImagePropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsImagePropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsImagePropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsImagePropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsImagePropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsImagePropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsImage property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsImagePropertyIterator) clear() {
- this.activitystreamsImageMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsMentionMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsImagePropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsImageProperty is the non-functional property "image". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsImageProperty struct {
- properties []*ActivityStreamsImagePropertyIterator
- alias string
-}
-
-// DeserializeImageProperty creates a "image" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeImageProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsImageProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "image"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "image")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsImageProperty{
- alias: alias,
- properties: []*ActivityStreamsImagePropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsImagePropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsImagePropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsImageProperty creates a new image property.
-func NewActivityStreamsImageProperty() *ActivityStreamsImageProperty {
- return &ActivityStreamsImageProperty{alias: ""}
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "image". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsImageProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "image". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsImageProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "image". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsImageProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "image"
-func (this *ActivityStreamsImageProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "image". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsImageProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsImagePropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsImageProperty) At(index int) vocab.ActivityStreamsImagePropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsImageProperty) Begin() vocab.ActivityStreamsImagePropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsImageProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsImageProperty) End() vocab.ActivityStreamsImagePropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "image". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsImageProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsImagePropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "image". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsImageProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsImagePropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "image". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsImageProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsImagePropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "image".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsImageProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsImagePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "image". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsImageProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsImagePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsImageProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsImageProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "image" property.
-func (this ActivityStreamsImageProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsImageProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsImageProperty) LessThan(o vocab.ActivityStreamsImageProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("image") with any alias.
-func (this ActivityStreamsImageProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "image"
- } else {
- return "image"
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "image". Invalidates all iterators.
-func (this *ActivityStreamsImageProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsImagePropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "image". Invalidates all iterators.
-func (this *ActivityStreamsImageProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsImagePropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "image". Invalidates all iterators.
-func (this *ActivityStreamsImageProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsImagePropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "image".
-func (this *ActivityStreamsImageProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsImagePropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "image". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsImageProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsImagePropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsImagePropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "image", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsImageProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsImagePropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsImageProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "image". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsImageProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsImagePropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "image". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsImageProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsImagePropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "image". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsImageProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsImagePropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "image".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsImageProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsImagePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "image". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsImageProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsImagePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "image" property.
-func (this ActivityStreamsImageProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go
deleted file mode 100644
index fd89c2c62..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go
+++ /dev/null
@@ -1,27 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyinbox
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go
deleted file mode 100644
index d93011f27..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go
+++ /dev/null
@@ -1,268 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyinbox
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsInboxProperty is the functional property "inbox". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsInboxProperty struct {
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeInboxProperty creates a "inbox" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeInboxProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsInboxProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "inbox"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "inbox")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsInboxProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInboxProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInboxProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsInboxProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsInboxProperty creates a new inbox property.
-func NewActivityStreamsInboxProperty() *ActivityStreamsInboxProperty {
- return &ActivityStreamsInboxProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsInboxProperty) Clear() {
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsInboxProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsInboxProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsInboxProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsInboxProperty) GetType() vocab.Type {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsInboxProperty) HasAny() bool {
- return this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsInboxProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsInboxProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsInboxProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsInboxProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsInboxProperty) KindIndex() int {
- if this.IsActivityStreamsOrderedCollection() {
- return 0
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 1
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsInboxProperty) LessThan(o vocab.ActivityStreamsInboxProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "inbox".
-func (this ActivityStreamsInboxProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "inbox"
- } else {
- return "inbox"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsInboxProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsInboxProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsInboxProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsInboxProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsInboxProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on inbox property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go
deleted file mode 100644
index 28597162f..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyinreplyto
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go
deleted file mode 100644
index 02ca1883b..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go
+++ /dev/null
@@ -1,7044 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyinreplyto
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsInReplyToPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsInReplyToPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsInReplyToProperty
-}
-
-// NewActivityStreamsInReplyToPropertyIterator creates a new
-// ActivityStreamsInReplyTo property.
-func NewActivityStreamsInReplyToPropertyIterator() *ActivityStreamsInReplyToPropertyIterator {
- return &ActivityStreamsInReplyToPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsInReplyToPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsInReplyToPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsInReplyToPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsInReplyToPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsInReplyToPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsInReplyToPropertyIterator) 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 ActivityStreamsInReplyToPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsInReplyToPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivityStreamsInReplyToPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsInReplyTo".
-func (this ActivityStreamsInReplyToPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsInReplyTo"
- } else {
- return "ActivityStreamsInReplyTo"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsInReplyToPropertyIterator) Next() vocab.ActivityStreamsInReplyToPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsInReplyToPropertyIterator) Prev() vocab.ActivityStreamsInReplyToPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsInReplyTo property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsInReplyToPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsInReplyToProperty is the non-functional property "inReplyTo". It
-// is permitted to have one or more values, and of different value types.
-type ActivityStreamsInReplyToProperty struct {
- properties []*ActivityStreamsInReplyToPropertyIterator
- alias string
-}
-
-// DeserializeInReplyToProperty creates a "inReplyTo" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeInReplyToProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "inReplyTo"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "inReplyTo")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsInReplyToProperty{
- alias: alias,
- properties: []*ActivityStreamsInReplyToPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsInReplyToPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsInReplyToPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsInReplyToProperty creates a new inReplyTo property.
-func NewActivityStreamsInReplyToProperty() *ActivityStreamsInReplyToProperty {
- return &ActivityStreamsInReplyToProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "inReplyTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "inReplyTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "inReplyTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "inReplyTo". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "inReplyTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "inReplyTo". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "inReplyTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "inReplyTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "inReplyTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "inReplyTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "inReplyTo". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "inReplyTo". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "inReplyTo"
-func (this *ActivityStreamsInReplyToProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "inReplyTo". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "inReplyTo". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInReplyToProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "inReplyTo". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsInReplyToProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsInReplyToProperty) At(index int) vocab.ActivityStreamsInReplyToPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsInReplyToProperty) Begin() vocab.ActivityStreamsInReplyToPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsInReplyToProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsInReplyToProperty) End() vocab.ActivityStreamsInReplyToPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "inReplyTo". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "inReplyTo". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "inReplyTo". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "inReplyTo". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "inReplyTo". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "inReplyTo". Existing elements
-// at that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "inReplyTo". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "inReplyTo". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "inReplyTo". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "inReplyTo". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "inReplyTo". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "inReplyTo". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "inReplyTo".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "inReplyTo". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "inReplyTo". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsInReplyToProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsInReplyToProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsInReplyToProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "inReplyTo" property.
-func (this ActivityStreamsInReplyToProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsInReplyToProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsInReplyToProperty) LessThan(o vocab.ActivityStreamsInReplyToProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("inReplyTo") with any alias.
-func (this ActivityStreamsInReplyToProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "inReplyTo"
- } else {
- return "inReplyTo"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "inReplyTo". Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "inReplyTo". Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "inReplyTo".
-func (this *ActivityStreamsInReplyToProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "inReplyTo". Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "inReplyTo". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsInReplyToProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "inReplyTo", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsInReplyToPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsInReplyToProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "inReplyTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "inReplyTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "inReplyTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "inReplyTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "inReplyTo". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "inReplyTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "inReplyTo". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "inReplyTo". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "inReplyTo". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "inReplyTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "inReplyTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "inReplyTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "inReplyTo". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "inReplyTo". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "inReplyTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "inReplyTo". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "inReplyTo". Panics if the index is out of bounds.
-func (this *ActivityStreamsInReplyToProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "inReplyTo". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInReplyToProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "inReplyTo". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInReplyToProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "inReplyTo". Invalidates all iterators. Returns an error if the type is not
-// a valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsInReplyToProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsInReplyToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "inReplyTo" property.
-func (this ActivityStreamsInReplyToProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go
deleted file mode 100644
index 7db2733ab..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyinstrument
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go
deleted file mode 100644
index 5ec8a82c6..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go
+++ /dev/null
@@ -1,7047 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyinstrument
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsInstrumentPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsInstrumentPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsInstrumentProperty
-}
-
-// NewActivityStreamsInstrumentPropertyIterator creates a new
-// ActivityStreamsInstrument property.
-func NewActivityStreamsInstrumentPropertyIterator() *ActivityStreamsInstrumentPropertyIterator {
- return &ActivityStreamsInstrumentPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsInstrumentPropertyIterator creates an iterator from
-// an element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsInstrumentPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsInstrumentPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsInstrumentPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsInstrumentPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsInstrumentPropertyIterator) 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 ActivityStreamsInstrumentPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsInstrumentPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityStreamsInstrumentPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsInstrument".
-func (this ActivityStreamsInstrumentPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsInstrument"
- } else {
- return "ActivityStreamsInstrument"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsInstrumentPropertyIterator) Next() vocab.ActivityStreamsInstrumentPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsInstrumentPropertyIterator) Prev() vocab.ActivityStreamsInstrumentPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsInstrument property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsInstrumentPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsInstrumentProperty is the non-functional property "instrument".
-// It is permitted to have one or more values, and of different value types.
-type ActivityStreamsInstrumentProperty struct {
- properties []*ActivityStreamsInstrumentPropertyIterator
- alias string
-}
-
-// DeserializeInstrumentProperty creates a "instrument" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeInstrumentProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsInstrumentProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "instrument"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "instrument")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsInstrumentProperty{
- alias: alias,
- properties: []*ActivityStreamsInstrumentPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsInstrumentPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsInstrumentPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsInstrumentProperty creates a new instrument property.
-func NewActivityStreamsInstrumentProperty() *ActivityStreamsInstrumentProperty {
- return &ActivityStreamsInstrumentProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "instrument". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "instrument". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "instrument". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "instrument". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "instrument". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "instrument". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "instrument". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "instrument". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "instrument". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "instrument". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "instrument". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "instrument". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property
-// "instrument"
-func (this *ActivityStreamsInstrumentProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "instrument". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "instrument". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsInstrumentProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "instrument". Invalidates iterators that are traversing using
-// Prev. Returns an error if the type is not a valid one to set for this
-// property.
-func (this *ActivityStreamsInstrumentProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsInstrumentProperty) At(index int) vocab.ActivityStreamsInstrumentPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsInstrumentProperty) Begin() vocab.ActivityStreamsInstrumentPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsInstrumentProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsInstrumentProperty) End() vocab.ActivityStreamsInstrumentPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "instrument". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "instrument". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "instrument". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "instrument". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "instrument". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "instrument". Existing elements
-// at that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "instrument". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "instrument". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "instrument". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "instrument". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "instrument". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "instrument". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "instrument".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "instrument". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "instrument". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "instrument". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsInstrumentProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsInstrumentProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsInstrumentProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "instrument" property.
-func (this ActivityStreamsInstrumentProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsInstrumentProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsInstrumentProperty) LessThan(o vocab.ActivityStreamsInstrumentProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("instrument") with any alias.
-func (this ActivityStreamsInstrumentProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "instrument"
- } else {
- return "instrument"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "instrument". Invalidates all
-// iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "instrument". Invalidates all
-// iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "instrument".
-func (this *ActivityStreamsInstrumentProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "instrument". Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "instrument". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsInstrumentProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "instrument", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsInstrumentPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsInstrumentProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "instrument". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "instrument". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "instrument". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "instrument". Panics if the
-// index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "instrument". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "instrument". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "instrument". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInstrumentProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "instrument". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "instrument". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "instrument". Panics if the index is out of bounds.
-func (this *ActivityStreamsInstrumentProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "instrument". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsInstrumentProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "instrument". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsInstrumentProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "instrument". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property. Panics if the index is out of
-// bounds.
-func (this *ActivityStreamsInstrumentProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsInstrumentPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "instrument" property.
-func (this ActivityStreamsInstrumentProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_pkg.go
deleted file mode 100644
index 35216bfa9..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyitems
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go
deleted file mode 100644
index bdc6a457c..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go
+++ /dev/null
@@ -1,7030 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyitems
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsItemsPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsItemsPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsItemsProperty
-}
-
-// NewActivityStreamsItemsPropertyIterator creates a new ActivityStreamsItems
-// property.
-func NewActivityStreamsItemsPropertyIterator() *ActivityStreamsItemsPropertyIterator {
- return &ActivityStreamsItemsPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsItemsPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsItemsPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsItemsPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsItemsPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsItemsPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsItemsPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsItemsPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsItemsPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsItemsPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsItemsPropertyIterator) 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 ActivityStreamsItemsPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsItemsPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStreamsItemsPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsItems".
-func (this ActivityStreamsItemsPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsItems"
- } else {
- return "ActivityStreamsItems"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsItemsPropertyIterator) Next() vocab.ActivityStreamsItemsPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsItemsPropertyIterator) Prev() vocab.ActivityStreamsItemsPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsItemsPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsItems property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsItemsPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsItemsProperty is the non-functional property "items". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsItemsProperty struct {
- properties []*ActivityStreamsItemsPropertyIterator
- alias string
-}
-
-// DeserializeItemsProperty creates a "items" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeItemsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsItemsProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "items"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "items")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsItemsProperty{
- alias: alias,
- properties: []*ActivityStreamsItemsPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsItemsPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsItemsPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsItemsProperty creates a new items property.
-func NewActivityStreamsItemsProperty() *ActivityStreamsItemsProperty {
- return &ActivityStreamsItemsProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "items". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "items". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "items". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "items". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "items". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "items". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "items". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "items". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "items". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "items". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "items". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "items". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsItemsProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "items"
-func (this *ActivityStreamsItemsProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "items". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsItemsProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "items". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsItemsProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsItemsProperty) At(index int) vocab.ActivityStreamsItemsPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsItemsProperty) Begin() vocab.ActivityStreamsItemsPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsItemsProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsItemsProperty) End() vocab.ActivityStreamsItemsPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "items". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "items". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "items". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "items". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "items". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "items". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "items". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "items". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "items". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "items". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "items". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "items". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "items". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "items". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "items". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "items". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "items". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "items". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "items".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "items". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "items". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "items". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsItemsProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsItemsProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsItemsProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "items" property.
-func (this ActivityStreamsItemsProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsItemsProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsItemsProperty) LessThan(o vocab.ActivityStreamsItemsProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("items") with any alias.
-func (this ActivityStreamsItemsProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "items"
- } else {
- return "items"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "items". Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "items". Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "items".
-func (this *ActivityStreamsItemsProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "items". Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "items". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsItemsProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsItemsPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "items", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsItemsPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsItemsProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "items". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "items". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "items". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "items". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "items". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "items". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "items". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "items". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "items". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "items". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "items". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "items". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "items". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "items". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "items". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "items". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "items". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsItemsProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "items". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "items".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsItemsProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "items". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsItemsProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "items". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsItemsProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "items". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsItemsProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "items" property.
-func (this ActivityStreamsItemsProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_pkg.go
deleted file mode 100644
index 34002889d..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertylast
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // 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)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go
deleted file mode 100644
index b50c32554..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go
+++ /dev/null
@@ -1,359 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertylast
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsLastProperty is the functional property "last". It is permitted
-// to be one of multiple value types. At most, one type of value can be
-// present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsLastProperty struct {
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeLastProperty creates a "last" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeLastProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLastProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "last"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "last")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsLastProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLastProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLastProperty{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLastProperty{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLastProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsLastProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsLastProperty creates a new last property.
-func NewActivityStreamsLastProperty() *ActivityStreamsLastProperty {
- return &ActivityStreamsLastProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsLastProperty) Clear() {
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsLastProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsLastProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsLastProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsLastProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsLastProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsLastProperty) GetType() vocab.Type {
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsLastProperty) HasAny() bool {
- return this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsLastProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsLastProperty) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsLastProperty) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsLastProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsLastProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsLastProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsLastProperty) KindIndex() int {
- if this.IsActivityStreamsCollectionPage() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsMention() {
- 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 ActivityStreamsLastProperty) LessThan(o vocab.ActivityStreamsLastProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "last".
-func (this ActivityStreamsLastProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "last"
- } else {
- return "last"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsLastProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsLastProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsLastProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.Clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsLastProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.Clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsLastProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsLastProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsLastProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on last property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go
deleted file mode 100644
index d5dd400b0..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertylatitude
-
-import (
- "fmt"
- float "github.com/go-fed/activity/streams/values/float"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsLatitudeProperty is the functional property "latitude". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsLatitudeProperty struct {
- xmlschemaFloatMember float64
- hasFloatMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeLatitudeProperty creates a "latitude" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeLatitudeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLatitudeProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "latitude"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "latitude")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsLatitudeProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := float.DeserializeFloat(i); err == nil {
- this := &ActivityStreamsLatitudeProperty{
- alias: alias,
- hasFloatMember: true,
- xmlschemaFloatMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsLatitudeProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsLatitudeProperty creates a new latitude property.
-func NewActivityStreamsLatitudeProperty() *ActivityStreamsLatitudeProperty {
- return &ActivityStreamsLatitudeProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat
-// afterwards will return false.
-func (this *ActivityStreamsLatitudeProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasFloatMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaFloat returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsLatitudeProperty) Get() float64 {
- return this.xmlschemaFloatMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsLatitudeProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsLatitudeProperty) HasAny() bool {
- return this.IsXMLSchemaFloat() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsLatitudeProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaFloat returns true if this property is set and not an IRI.
-func (this ActivityStreamsLatitudeProperty) IsXMLSchemaFloat() bool {
- return this.hasFloatMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsLatitudeProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsLatitudeProperty) KindIndex() int {
- if this.IsXMLSchemaFloat() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsLatitudeProperty) LessThan(o vocab.ActivityStreamsLatitudeProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return float.LessFloat(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "latitude".
-func (this ActivityStreamsLatitudeProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "latitude"
- } else {
- return "latitude"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsLatitudeProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaFloat() {
- return float.SerializeFloat(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will
-// return true.
-func (this *ActivityStreamsLatitudeProperty) Set(v float64) {
- this.Clear()
- this.xmlschemaFloatMember = v
- this.hasFloatMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsLatitudeProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_pkg.go
deleted file mode 100644
index f4837d33c..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyliked
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go
deleted file mode 100644
index ea632584f..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go
+++ /dev/null
@@ -1,360 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyliked
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsLikedProperty is the functional property "liked". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsLikedProperty struct {
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeLikedProperty creates a "liked" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeLikedProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLikedProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "liked"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "liked")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsLikedProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLikedProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLikedProperty{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLikedProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLikedProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsLikedProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsLikedProperty creates a new liked property.
-func NewActivityStreamsLikedProperty() *ActivityStreamsLikedProperty {
- return &ActivityStreamsLikedProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsLikedProperty) Clear() {
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsLikedProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsLikedProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsLikedProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsLikedProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsLikedProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsLikedProperty) GetType() vocab.Type {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsLikedProperty) HasAny() bool {
- return this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsLikedProperty) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsLikedProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsLikedProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsLikedProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsLikedProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsLikedProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsLikedProperty) KindIndex() int {
- if this.IsActivityStreamsOrderedCollection() {
- return 0
- }
- if this.IsActivityStreamsCollection() {
- return 1
- }
- if this.IsActivityStreamsCollectionPage() {
- return 2
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 3
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsLikedProperty) LessThan(o vocab.ActivityStreamsLikedProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "liked".
-func (this ActivityStreamsLikedProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "liked"
- } else {
- return "liked"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsLikedProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsLikedProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.Clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsLikedProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsLikedProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsLikedProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsLikedProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsLikedProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on liked property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_pkg.go
deleted file mode 100644
index fa01eb3d0..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertylikes
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go
deleted file mode 100644
index 6acdadd57..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go
+++ /dev/null
@@ -1,360 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertylikes
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsLikesProperty is the functional property "likes". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsLikesProperty struct {
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeLikesProperty creates a "likes" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeLikesProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLikesProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "likes"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "likes")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsLikesProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLikesProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLikesProperty{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLikesProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLikesProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsLikesProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsLikesProperty creates a new likes property.
-func NewActivityStreamsLikesProperty() *ActivityStreamsLikesProperty {
- return &ActivityStreamsLikesProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsLikesProperty) Clear() {
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsLikesProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsLikesProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsLikesProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsLikesProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsLikesProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsLikesProperty) GetType() vocab.Type {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsLikesProperty) HasAny() bool {
- return this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsLikesProperty) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsLikesProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsLikesProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsLikesProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsLikesProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsLikesProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsLikesProperty) KindIndex() int {
- if this.IsActivityStreamsOrderedCollection() {
- return 0
- }
- if this.IsActivityStreamsCollection() {
- return 1
- }
- if this.IsActivityStreamsCollectionPage() {
- return 2
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 3
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsLikesProperty) LessThan(o vocab.ActivityStreamsLikesProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "likes".
-func (this ActivityStreamsLikesProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "likes"
- } else {
- return "likes"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsLikesProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsLikesProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.Clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsLikesProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsLikesProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsLikesProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsLikesProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsLikesProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on likes property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_pkg.go
deleted file mode 100644
index 946433a6d..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertylocation
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go
deleted file mode 100644
index 1644d8e09..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go
+++ /dev/null
@@ -1,7042 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertylocation
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsLocationPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsLocationPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsLocationProperty
-}
-
-// NewActivityStreamsLocationPropertyIterator creates a new
-// ActivityStreamsLocation property.
-func NewActivityStreamsLocationPropertyIterator() *ActivityStreamsLocationPropertyIterator {
- return &ActivityStreamsLocationPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsLocationPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsLocationPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsLocationPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsLocationPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsLocationPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsLocationPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsLocationPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsLocationPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsLocationPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsLocationPropertyIterator) 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 ActivityStreamsLocationPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsLocationPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStreamsLocationPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsLocation".
-func (this ActivityStreamsLocationPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsLocation"
- } else {
- return "ActivityStreamsLocation"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsLocationPropertyIterator) Next() vocab.ActivityStreamsLocationPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsLocationPropertyIterator) Prev() vocab.ActivityStreamsLocationPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsLocationPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsLocation property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsLocationPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsLocationProperty is the non-functional property "location". It
-// is permitted to have one or more values, and of different value types.
-type ActivityStreamsLocationProperty struct {
- properties []*ActivityStreamsLocationPropertyIterator
- alias string
-}
-
-// DeserializeLocationProperty creates a "location" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeLocationProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsLocationProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "location"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "location")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsLocationProperty{
- alias: alias,
- properties: []*ActivityStreamsLocationPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsLocationPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsLocationPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsLocationProperty creates a new location property.
-func NewActivityStreamsLocationProperty() *ActivityStreamsLocationProperty {
- return &ActivityStreamsLocationProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "location". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "location". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "location". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "location". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "location". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "location". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "location". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "location". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "location". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "location". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "location". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "location"
-func (this *ActivityStreamsLocationProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "location". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsLocationProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "location". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsLocationProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "location". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsLocationProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsLocationProperty) At(index int) vocab.ActivityStreamsLocationPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsLocationProperty) Begin() vocab.ActivityStreamsLocationPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsLocationProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsLocationProperty) End() vocab.ActivityStreamsLocationPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "location". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "location". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "location". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "location". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "location". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "location". Existing elements
-// at that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "location". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "location". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "location". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "location". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "location". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "location". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "location". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "location".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "location". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "location". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "location". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsLocationProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsLocationProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsLocationProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "location" property.
-func (this ActivityStreamsLocationProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsLocationProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsLocationProperty) LessThan(o vocab.ActivityStreamsLocationProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("location") with any alias.
-func (this ActivityStreamsLocationProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "location"
- } else {
- return "location"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "location". Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "location". Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "location".
-func (this *ActivityStreamsLocationProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "location". Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "location". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsLocationProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsLocationPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "location", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsLocationPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsLocationProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "location". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "location". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "location". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "location". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "location". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "location". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "location". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "location". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "location". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "location". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "location". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "location". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "location". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "location". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "location". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "location". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "location". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsLocationProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "location". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsLocationProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "location". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "location". Panics if the index is out of bounds.
-func (this *ActivityStreamsLocationProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "location". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "location". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsLocationProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "location". Invalidates all iterators. Returns an error if the type is not
-// a valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsLocationProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsLocationPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "location" property.
-func (this ActivityStreamsLocationProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go
deleted file mode 100644
index b05ffe8af..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertylongitude
-
-import (
- "fmt"
- float "github.com/go-fed/activity/streams/values/float"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsLongitudeProperty is the functional property "longitude". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsLongitudeProperty struct {
- xmlschemaFloatMember float64
- hasFloatMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeLongitudeProperty creates a "longitude" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeLongitudeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsLongitudeProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "longitude"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "longitude")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsLongitudeProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := float.DeserializeFloat(i); err == nil {
- this := &ActivityStreamsLongitudeProperty{
- alias: alias,
- hasFloatMember: true,
- xmlschemaFloatMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsLongitudeProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsLongitudeProperty creates a new longitude property.
-func NewActivityStreamsLongitudeProperty() *ActivityStreamsLongitudeProperty {
- return &ActivityStreamsLongitudeProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat
-// afterwards will return false.
-func (this *ActivityStreamsLongitudeProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasFloatMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaFloat returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsLongitudeProperty) Get() float64 {
- return this.xmlschemaFloatMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsLongitudeProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsLongitudeProperty) HasAny() bool {
- return this.IsXMLSchemaFloat() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsLongitudeProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaFloat returns true if this property is set and not an IRI.
-func (this ActivityStreamsLongitudeProperty) IsXMLSchemaFloat() bool {
- return this.hasFloatMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsLongitudeProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsLongitudeProperty) KindIndex() int {
- if this.IsXMLSchemaFloat() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsLongitudeProperty) LessThan(o vocab.ActivityStreamsLongitudeProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return float.LessFloat(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "longitude".
-func (this ActivityStreamsLongitudeProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "longitude"
- } else {
- return "longitude"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsLongitudeProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaFloat() {
- return float.SerializeFloat(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will
-// return true.
-func (this *ActivityStreamsLongitudeProperty) Set(v float64) {
- this.Clear()
- this.xmlschemaFloatMember = v
- this.hasFloatMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsLongitudeProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go
deleted file mode 100644
index e0356a2cf..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers/gen_property_activitystreams_manuallyApprovesFollowers.go
+++ /dev/null
@@ -1,206 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertymanuallyapprovesfollowers
-
-import (
- "fmt"
- boolean "github.com/go-fed/activity/streams/values/boolean"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsManuallyApprovesFollowersProperty is the functional property
-// "manuallyApprovesFollowers". It is permitted to be a single default-valued
-// value type.
-type ActivityStreamsManuallyApprovesFollowersProperty struct {
- xmlschemaBooleanMember bool
- hasBooleanMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeManuallyApprovesFollowersProperty creates a
-// "manuallyApprovesFollowers" property from an interface representation that
-// has been unmarshalled from a text or binary format.
-func DeserializeManuallyApprovesFollowersProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsManuallyApprovesFollowersProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "manuallyApprovesFollowers"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "manuallyApprovesFollowers")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsManuallyApprovesFollowersProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := boolean.DeserializeBoolean(i); err == nil {
- this := &ActivityStreamsManuallyApprovesFollowersProperty{
- alias: alias,
- hasBooleanMember: true,
- xmlschemaBooleanMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsManuallyApprovesFollowersProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsManuallyApprovesFollowersProperty creates a new
-// manuallyApprovesFollowers property.
-func NewActivityStreamsManuallyApprovesFollowersProperty() *ActivityStreamsManuallyApprovesFollowersProperty {
- return &ActivityStreamsManuallyApprovesFollowersProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean
-// afterwards will return false.
-func (this *ActivityStreamsManuallyApprovesFollowersProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasBooleanMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaBoolean returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsManuallyApprovesFollowersProperty) Get() bool {
- return this.xmlschemaBooleanMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsManuallyApprovesFollowersProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsManuallyApprovesFollowersProperty) HasAny() bool {
- return this.IsXMLSchemaBoolean() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsManuallyApprovesFollowersProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaBoolean returns true if this property is set and not an IRI.
-func (this ActivityStreamsManuallyApprovesFollowersProperty) IsXMLSchemaBoolean() bool {
- return this.hasBooleanMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsManuallyApprovesFollowersProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsManuallyApprovesFollowersProperty) KindIndex() int {
- if this.IsXMLSchemaBoolean() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsManuallyApprovesFollowersProperty) LessThan(o vocab.ActivityStreamsManuallyApprovesFollowersProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return boolean.LessBoolean(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "manuallyApprovesFollowers".
-func (this ActivityStreamsManuallyApprovesFollowersProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "manuallyApprovesFollowers"
- } else {
- return "manuallyApprovesFollowers"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsManuallyApprovesFollowersProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaBoolean() {
- return boolean.SerializeBoolean(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will
-// return true.
-func (this *ActivityStreamsManuallyApprovesFollowersProperty) Set(v bool) {
- this.Clear()
- this.xmlschemaBooleanMember = v
- this.hasBooleanMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsManuallyApprovesFollowersProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go
deleted file mode 100644
index 8c8eefef3..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertymediatype
-
-import (
- "fmt"
- rfc2045 "github.com/go-fed/activity/streams/values/rfc2045"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsMediaTypeProperty is the functional property "mediaType". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsMediaTypeProperty struct {
- rfcRfc2045Member string
- hasRfc2045Member bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeMediaTypeProperty creates a "mediaType" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeMediaTypeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsMediaTypeProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "mediaType"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "mediaType")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsMediaTypeProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := rfc2045.DeserializeRfc2045(i); err == nil {
- this := &ActivityStreamsMediaTypeProperty{
- alias: alias,
- hasRfc2045Member: true,
- rfcRfc2045Member: v,
- }
- return this, nil
- }
- this := &ActivityStreamsMediaTypeProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsMediaTypeProperty creates a new mediaType property.
-func NewActivityStreamsMediaTypeProperty() *ActivityStreamsMediaTypeProperty {
- return &ActivityStreamsMediaTypeProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsRFCRfc2045 afterwards
-// will return false.
-func (this *ActivityStreamsMediaTypeProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasRfc2045Member = false
-}
-
-// Get returns the value of this property. When IsRFCRfc2045 returns false, Get
-// will return any arbitrary value.
-func (this ActivityStreamsMediaTypeProperty) Get() string {
- return this.rfcRfc2045Member
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsMediaTypeProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsMediaTypeProperty) HasAny() bool {
- return this.IsRFCRfc2045() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsMediaTypeProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsRFCRfc2045 returns true if this property is set and not an IRI.
-func (this ActivityStreamsMediaTypeProperty) IsRFCRfc2045() bool {
- return this.hasRfc2045Member
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsMediaTypeProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsMediaTypeProperty) KindIndex() int {
- if this.IsRFCRfc2045() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsMediaTypeProperty) LessThan(o vocab.ActivityStreamsMediaTypeProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsRFCRfc2045() && !o.IsRFCRfc2045() {
- // Both are unknowns.
- return false
- } else if this.IsRFCRfc2045() && !o.IsRFCRfc2045() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsRFCRfc2045() && o.IsRFCRfc2045() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return rfc2045.LessRfc2045(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "mediaType".
-func (this ActivityStreamsMediaTypeProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "mediaType"
- } else {
- return "mediaType"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsMediaTypeProperty) Serialize() (interface{}, error) {
- if this.IsRFCRfc2045() {
- return rfc2045.SerializeRfc2045(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsRFCRfc2045 afterwards will
-// return true.
-func (this *ActivityStreamsMediaTypeProperty) Set(v string) {
- this.Clear()
- this.rfcRfc2045Member = v
- this.hasRfc2045Member = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsMediaTypeProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go
deleted file mode 100644
index 69d9cfbce..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go
+++ /dev/null
@@ -1,667 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyname
-
-import (
- "fmt"
- langstring "github.com/go-fed/activity/streams/values/langString"
- string1 "github.com/go-fed/activity/streams/values/string"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsNamePropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsNamePropertyIterator struct {
- xmlschemaStringMember string
- hasStringMember bool
- rdfLangStringMember map[string]string
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsNameProperty
-}
-
-// NewActivityStreamsNamePropertyIterator creates a new ActivityStreamsName
-// property.
-func NewActivityStreamsNamePropertyIterator() *ActivityStreamsNamePropertyIterator {
- return &ActivityStreamsNamePropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsNamePropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsNamePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsNamePropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsNamePropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := string1.DeserializeString(i); err == nil {
- this := &ActivityStreamsNamePropertyIterator{
- alias: alias,
- hasStringMember: true,
- xmlschemaStringMember: v,
- }
- return this, nil
- } else if v, err := langstring.DeserializeLangString(i); err == nil {
- this := &ActivityStreamsNamePropertyIterator{
- alias: alias,
- rdfLangStringMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsNamePropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsNamePropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetLanguage returns the value for the specified BCP47 language code, or an
-// empty string if it is either not a language map or no value is present.
-func (this ActivityStreamsNamePropertyIterator) GetLanguage(bcp47 string) string {
- if this.rdfLangStringMember == nil {
- return ""
- } else if v, ok := this.rdfLangStringMember[bcp47]; ok {
- return v
- } else {
- return ""
- }
-}
-
-// GetRDFLangString returns the value of this property. When IsRDFLangString
-// returns false, GetRDFLangString will return an arbitrary value.
-func (this ActivityStreamsNamePropertyIterator) GetRDFLangString() map[string]string {
- return this.rdfLangStringMember
-}
-
-// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString
-// returns false, GetXMLSchemaString will return an arbitrary value.
-func (this ActivityStreamsNamePropertyIterator) GetXMLSchemaString() string {
- return this.xmlschemaStringMember
-}
-
-// HasAny returns true if any of the values are set, except for the natural
-// language map. When true, the specific has, getter, and setter methods may
-// be used to determine what kind of value there is to access and set this
-// property. To determine if the property was set as a natural language map,
-// use the IsRDFLangString method instead.
-func (this ActivityStreamsNamePropertyIterator) HasAny() bool {
- return this.IsXMLSchemaString() ||
- this.IsRDFLangString() ||
- this.iri != nil
-}
-
-// HasLanguage returns true if the natural language map has an entry for the
-// specified BCP47 language code.
-func (this ActivityStreamsNamePropertyIterator) HasLanguage(bcp47 string) bool {
- if this.rdfLangStringMember == nil {
- return false
- } else {
- _, ok := this.rdfLangStringMember[bcp47]
- return ok
- }
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsNamePropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsRDFLangString returns true if this property has a type of "langString". When
-// true, use the GetRDFLangString and SetRDFLangString methods to access and
-// set this property.. To determine if the property was set as a natural
-// language map, use the IsRDFLangString method instead.
-func (this ActivityStreamsNamePropertyIterator) IsRDFLangString() bool {
- return this.rdfLangStringMember != nil
-}
-
-// IsXMLSchemaString returns true if this property has a type of "string". When
-// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access
-// and set this property.. To determine if the property was set as a natural
-// language map, use the IsRDFLangString method instead.
-func (this ActivityStreamsNamePropertyIterator) IsXMLSchemaString() bool {
- return this.hasStringMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsNamePropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsNamePropertyIterator) KindIndex() int {
- if this.IsXMLSchemaString() {
- return 0
- }
- if this.IsRDFLangString() {
- return 1
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsNamePropertyIterator) LessThan(o vocab.ActivityStreamsNamePropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsXMLSchemaString() {
- return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString())
- } else if this.IsRDFLangString() {
- return langstring.LessLangString(this.GetRDFLangString(), o.GetRDFLangString())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsName".
-func (this ActivityStreamsNamePropertyIterator) Name() string {
- if this.IsRDFLangString() {
- return "ActivityStreamsNameMap"
- } else {
- return "ActivityStreamsName"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsNamePropertyIterator) Next() vocab.ActivityStreamsNamePropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsNamePropertyIterator) Prev() vocab.ActivityStreamsNamePropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsNamePropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetLanguage sets the value for the specified BCP47 language code.
-func (this *ActivityStreamsNamePropertyIterator) SetLanguage(bcp47, value string) {
- this.hasStringMember = false
- this.rdfLangStringMember = nil
- this.unknown = nil
- this.iri = nil
- if this.rdfLangStringMember == nil {
- this.rdfLangStringMember = make(map[string]string)
- }
- this.rdfLangStringMember[bcp47] = value
-}
-
-// SetRDFLangString sets the value of this property and clears the natural
-// language map. Calling IsRDFLangString afterwards will return true. Calling
-// IsRDFLangString afterwards returns false.
-func (this *ActivityStreamsNamePropertyIterator) SetRDFLangString(v map[string]string) {
- this.clear()
- this.rdfLangStringMember = v
-}
-
-// SetXMLSchemaString sets the value of this property and clears the natural
-// language map. Calling IsXMLSchemaString afterwards will return true.
-// Calling IsRDFLangString afterwards returns false.
-func (this *ActivityStreamsNamePropertyIterator) SetXMLSchemaString(v string) {
- this.clear()
- this.xmlschemaStringMember = v
- this.hasStringMember = true
-}
-
-// clear ensures no value and no language map for this property is set. Calling
-// HasAny or any of the 'Is' methods afterwards will return false.
-func (this *ActivityStreamsNamePropertyIterator) clear() {
- this.hasStringMember = false
- this.rdfLangStringMember = nil
- this.unknown = nil
- this.iri = nil
- this.rdfLangStringMember = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsNamePropertyIterator) serialize() (interface{}, error) {
- if this.IsXMLSchemaString() {
- return string1.SerializeString(this.GetXMLSchemaString())
- } else if this.IsRDFLangString() {
- return langstring.SerializeLangString(this.GetRDFLangString())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsNameProperty is the non-functional property "name". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsNameProperty struct {
- properties []*ActivityStreamsNamePropertyIterator
- alias string
-}
-
-// DeserializeNameProperty creates a "name" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeNameProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsNameProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "name"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "name")
- }
- i, ok := m[propName]
- if !ok {
- // Attempt to find the map instead.
- i, ok = m[propName+"Map"]
- }
- if ok {
- this := &ActivityStreamsNameProperty{
- alias: alias,
- properties: []*ActivityStreamsNamePropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsNamePropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsNamePropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsNameProperty creates a new name property.
-func NewActivityStreamsNameProperty() *ActivityStreamsNameProperty {
- return &ActivityStreamsNameProperty{alias: ""}
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "name"
-func (this *ActivityStreamsNameProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsNamePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendRDFLangString appends a langString value to the back of a list of the
-// property "name". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsNameProperty) AppendRDFLangString(v map[string]string) {
- this.properties = append(this.properties, &ActivityStreamsNamePropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- rdfLangStringMember: v,
- })
-}
-
-// AppendXMLSchemaString appends a string value to the back of a list of the
-// property "name". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsNameProperty) AppendXMLSchemaString(v string) {
- this.properties = append(this.properties, &ActivityStreamsNamePropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: this.Len(),
- parent: this,
- xmlschemaStringMember: v,
- })
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsNameProperty) At(index int) vocab.ActivityStreamsNamePropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsNameProperty) Begin() vocab.ActivityStreamsNamePropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsNameProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsNameProperty) End() vocab.ActivityStreamsNamePropertyIterator {
- return nil
-}
-
-// Insert inserts an IRI value at the specified index for a property "name".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsNameProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsNamePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertRDFLangString inserts a langString value at the specified index for a
-// property "name". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsNameProperty) InsertRDFLangString(idx int, v map[string]string) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsNamePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- rdfLangStringMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertXMLSchemaString inserts a string value at the specified index for a
-// property "name". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsNameProperty) InsertXMLSchemaString(idx int, v string) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsNamePropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaStringMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsNameProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsNameProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "name" property.
-func (this ActivityStreamsNameProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsNameProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetXMLSchemaString()
- rhs := this.properties[j].GetXMLSchemaString()
- return string1.LessString(lhs, rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetRDFLangString()
- rhs := this.properties[j].GetRDFLangString()
- return langstring.LessLangString(lhs, rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsNameProperty) LessThan(o vocab.ActivityStreamsNameProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("name") with any alias.
-func (this ActivityStreamsNameProperty) Name() string {
- if this.Len() == 1 && this.At(0).IsRDFLangString() {
- return "nameMap"
- } else {
- return "name"
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "name".
-func (this *ActivityStreamsNameProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsNamePropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependRDFLangString prepends a langString value to the front of a list of the
-// property "name". Invalidates all iterators.
-func (this *ActivityStreamsNameProperty) PrependRDFLangString(v map[string]string) {
- this.properties = append([]*ActivityStreamsNamePropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- rdfLangStringMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependXMLSchemaString prepends a string value to the front of a list of the
-// property "name". Invalidates all iterators.
-func (this *ActivityStreamsNameProperty) PrependXMLSchemaString(v string) {
- this.properties = append([]*ActivityStreamsNamePropertyIterator{{
- alias: this.alias,
- hasStringMember: true,
- myIdx: 0,
- parent: this,
- xmlschemaStringMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "name", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsNameProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsNamePropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsNameProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "name".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsNameProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsNamePropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetRDFLangString sets a langString value to be at the specified index for the
-// property "name". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsNameProperty) SetRDFLangString(idx int, v map[string]string) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsNamePropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- rdfLangStringMember: v,
- }
-}
-
-// SetXMLSchemaString sets a string value to be at the specified index for the
-// property "name". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsNameProperty) SetXMLSchemaString(idx int, v string) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsNamePropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaStringMember: v,
- }
-}
-
-// Swap swaps the location of values at two indices for the "name" property.
-func (this ActivityStreamsNameProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_pkg.go
deleted file mode 100644
index 20e814b77..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertynext
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // 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)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go
deleted file mode 100644
index 6727d280f..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go
+++ /dev/null
@@ -1,359 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertynext
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsNextProperty is the functional property "next". It is permitted
-// to be one of multiple value types. At most, one type of value can be
-// present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsNextProperty struct {
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeNextProperty creates a "next" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeNextProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsNextProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "next"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "next")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsNextProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsNextProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsNextProperty{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsNextProperty{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsNextProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsNextProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsNextProperty creates a new next property.
-func NewActivityStreamsNextProperty() *ActivityStreamsNextProperty {
- return &ActivityStreamsNextProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsNextProperty) Clear() {
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsNextProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsNextProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsNextProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsNextProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsNextProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsNextProperty) GetType() vocab.Type {
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsNextProperty) HasAny() bool {
- return this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsNextProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsNextProperty) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsNextProperty) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsNextProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsNextProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsNextProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsNextProperty) KindIndex() int {
- if this.IsActivityStreamsCollectionPage() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsMention() {
- 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 ActivityStreamsNextProperty) LessThan(o vocab.ActivityStreamsNextProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "next".
-func (this ActivityStreamsNextProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "next"
- } else {
- return "next"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsNextProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsNextProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsNextProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.Clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsNextProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.Clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsNextProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsNextProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsNextProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on next property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_pkg.go
deleted file mode 100644
index d9176c966..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyobject
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go
deleted file mode 100644
index 501ddaabd..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go
+++ /dev/null
@@ -1,7031 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyobject
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsObjectPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsObjectPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsObjectProperty
-}
-
-// NewActivityStreamsObjectPropertyIterator creates a new ActivityStreamsObject
-// property.
-func NewActivityStreamsObjectPropertyIterator() *ActivityStreamsObjectPropertyIterator {
- return &ActivityStreamsObjectPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsObjectPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsObjectPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsObjectPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsObjectPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsObjectPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsObjectPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsObjectPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsObjectPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsObjectPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsObjectPropertyIterator) 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 ActivityStreamsObjectPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsObjectPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStreamsObjectPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsObject".
-func (this ActivityStreamsObjectPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsObject"
- } else {
- return "ActivityStreamsObject"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsObjectPropertyIterator) Next() vocab.ActivityStreamsObjectPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsObjectPropertyIterator) Prev() vocab.ActivityStreamsObjectPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsObjectPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsObject property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsObjectPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsObjectProperty is the non-functional property "object". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsObjectProperty struct {
- properties []*ActivityStreamsObjectPropertyIterator
- alias string
-}
-
-// DeserializeObjectProperty creates a "object" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeObjectProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsObjectProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "object"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "object")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsObjectProperty{
- alias: alias,
- properties: []*ActivityStreamsObjectPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsObjectPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsObjectPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsObjectProperty creates a new object property.
-func NewActivityStreamsObjectProperty() *ActivityStreamsObjectProperty {
- return &ActivityStreamsObjectProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "object". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "object". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "object". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "object". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "object". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "object". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "object". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "object". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "object". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "object". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "object". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "object". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsObjectProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "object"
-func (this *ActivityStreamsObjectProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "object". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsObjectProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "object". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsObjectProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsObjectProperty) At(index int) vocab.ActivityStreamsObjectPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsObjectProperty) Begin() vocab.ActivityStreamsObjectPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsObjectProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsObjectProperty) End() vocab.ActivityStreamsObjectPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "object". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "object". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "object". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "object". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "object". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "object". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "object". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "object". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "object". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "object". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "object". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "object". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "object". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "object". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "object". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "object". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "object". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "object". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "object".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "object". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "object". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "object". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsObjectProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsObjectProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsObjectProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "object" property.
-func (this ActivityStreamsObjectProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsObjectProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsObjectProperty) LessThan(o vocab.ActivityStreamsObjectProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("object") with any alias.
-func (this ActivityStreamsObjectProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "object"
- } else {
- return "object"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "object". Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "object". Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "object".
-func (this *ActivityStreamsObjectProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "object". Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "object". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsObjectProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsObjectPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "object", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsObjectPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsObjectProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "object". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "object". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "object". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "object". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "object". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "object". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "object". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "object". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "object". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "object". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "object". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "object". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "object". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "object". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "object". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "object". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "object". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsObjectProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "object". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsObjectProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "object". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "object". Panics if the index is out of bounds.
-func (this *ActivityStreamsObjectProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "object". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "object". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsObjectProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "object". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsObjectProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsObjectPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "object" property.
-func (this ActivityStreamsObjectProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go
deleted file mode 100644
index f0a1b461f..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyoneof
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go
deleted file mode 100644
index 4561cecd7..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go
+++ /dev/null
@@ -1,7030 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyoneof
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsOneOfPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsOneOfPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsOneOfProperty
-}
-
-// NewActivityStreamsOneOfPropertyIterator creates a new ActivityStreamsOneOf
-// property.
-func NewActivityStreamsOneOfPropertyIterator() *ActivityStreamsOneOfPropertyIterator {
- return &ActivityStreamsOneOfPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsOneOfPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsOneOfPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsOneOfPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOneOfPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsOneOfPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsOneOfPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsOneOfPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsOneOfPropertyIterator) 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 ActivityStreamsOneOfPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsOneOfPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStreamsOneOfPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsOneOf".
-func (this ActivityStreamsOneOfPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsOneOf"
- } else {
- return "ActivityStreamsOneOf"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsOneOfPropertyIterator) Next() vocab.ActivityStreamsOneOfPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsOneOfPropertyIterator) Prev() vocab.ActivityStreamsOneOfPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsOneOfPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsOneOf property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsOneOfPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsOneOfProperty is the non-functional property "oneOf". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsOneOfProperty struct {
- properties []*ActivityStreamsOneOfPropertyIterator
- alias string
-}
-
-// DeserializeOneOfProperty creates a "oneOf" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeOneOfProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOneOfProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "oneOf"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "oneOf")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsOneOfProperty{
- alias: alias,
- properties: []*ActivityStreamsOneOfPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsOneOfPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsOneOfPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsOneOfProperty creates a new oneOf property.
-func NewActivityStreamsOneOfProperty() *ActivityStreamsOneOfProperty {
- return &ActivityStreamsOneOfProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "oneOf". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "oneOf". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "oneOf". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "oneOf". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "oneOf". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "oneOf". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "oneOf". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "oneOf". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "oneOf". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "oneOf". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "oneOf". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "oneOf". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "oneOf"
-func (this *ActivityStreamsOneOfProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "oneOf". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOneOfProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "oneOf". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsOneOfProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsOneOfProperty) At(index int) vocab.ActivityStreamsOneOfPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsOneOfProperty) Begin() vocab.ActivityStreamsOneOfPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsOneOfProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsOneOfProperty) End() vocab.ActivityStreamsOneOfPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "oneOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "oneOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "oneOf". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "oneOf". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "oneOf". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "oneOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "oneOf". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "oneOf". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "oneOf". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "oneOf". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "oneOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "oneOf". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "oneOf". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "oneOf". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "oneOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "oneOf". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "oneOf". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "oneOf". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "oneOf".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "oneOf". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "oneOf". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "oneOf". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsOneOfProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsOneOfProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsOneOfProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "oneOf" property.
-func (this ActivityStreamsOneOfProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsOneOfProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsOneOfProperty) LessThan(o vocab.ActivityStreamsOneOfProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("oneOf") with any alias.
-func (this ActivityStreamsOneOfProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "oneOf"
- } else {
- return "oneOf"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "oneOf". Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "oneOf". Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "oneOf".
-func (this *ActivityStreamsOneOfProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "oneOf". Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "oneOf". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsOneOfProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsOneOfPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "oneOf", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsOneOfPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsOneOfProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "oneOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "oneOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "oneOf". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "oneOf". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "oneOf". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "oneOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "oneOf". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "oneOf". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "oneOf". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "oneOf". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "oneOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "oneOf". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "oneOf". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "oneOf". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "oneOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "oneOf". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "oneOf". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOneOfProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "oneOf". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "oneOf".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsOneOfProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "oneOf". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOneOfProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "oneOf". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOneOfProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "oneOf". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsOneOfProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsOneOfPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "oneOf" property.
-func (this ActivityStreamsOneOfProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go
deleted file mode 100644
index 6aa80f7f9..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyordereditems
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go
deleted file mode 100644
index 02b9bc8b4..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go
+++ /dev/null
@@ -1,7089 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyordereditems
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsOrderedItemsPropertyIterator is an iterator for a property. It
-// is permitted to be one of multiple value types. At most, one type of value
-// can be present, or none at all. Setting a value will clear the other types
-// of values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsOrderedItemsPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsOrderedItemsProperty
-}
-
-// NewActivityStreamsOrderedItemsPropertyIterator creates a new
-// ActivityStreamsOrderedItems property.
-func NewActivityStreamsOrderedItemsPropertyIterator() *ActivityStreamsOrderedItemsPropertyIterator {
- return &ActivityStreamsOrderedItemsPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsOrderedItemsPropertyIterator creates an iterator from
-// an element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsOrderedItemsPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsOrderedItemsPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsOrderedItemsPropertyIterator) 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 ActivityStreamsOrderedItemsPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsOrderedItemsPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.ActivityStreamsOrderedItemsPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsOrderedItems".
-func (this ActivityStreamsOrderedItemsPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsOrderedItems"
- } else {
- return "ActivityStreamsOrderedItems"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsOrderedItemsPropertyIterator) Next() vocab.ActivityStreamsOrderedItemsPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsOrderedItemsPropertyIterator) Prev() vocab.ActivityStreamsOrderedItemsPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsOrderedItems property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsOrderedItemsProperty is the non-functional property
-// "orderedItems". It is permitted to have one or more values, and of
-// different value types.
-type ActivityStreamsOrderedItemsProperty struct {
- properties []*ActivityStreamsOrderedItemsPropertyIterator
- alias string
-}
-
-// DeserializeOrderedItemsProperty creates a "orderedItems" property from an
-// interface representation that has been unmarshalled from a text or binary
-// format.
-func DeserializeOrderedItemsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOrderedItemsProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "orderedItems"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "orderedItems")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsOrderedItemsProperty{
- alias: alias,
- properties: []*ActivityStreamsOrderedItemsPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsOrderedItemsPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsOrderedItemsPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsOrderedItemsProperty creates a new orderedItems property.
-func NewActivityStreamsOrderedItemsProperty() *ActivityStreamsOrderedItemsProperty {
- return &ActivityStreamsOrderedItemsProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "orderedItems". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "orderedItems". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "orderedItems". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "orderedItems". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "orderedItems". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "orderedItems". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "orderedItems". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "orderedItems". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "orderedItems". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "orderedItems". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "orderedItems". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "orderedItems". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property
-// "orderedItems"
-func (this *ActivityStreamsOrderedItemsProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "orderedItems". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "orderedItems". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOrderedItemsProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "orderedItems". Invalidates iterators that are traversing using
-// Prev. Returns an error if the type is not a valid one to set for this
-// property.
-func (this *ActivityStreamsOrderedItemsProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsOrderedItemsProperty) At(index int) vocab.ActivityStreamsOrderedItemsPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsOrderedItemsProperty) Begin() vocab.ActivityStreamsOrderedItemsPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsOrderedItemsProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsOrderedItemsProperty) End() vocab.ActivityStreamsOrderedItemsPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "orderedItems". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "orderedItems". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "orderedItems". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "orderedItems". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "orderedItems". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "orderedItems". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "orderedItems". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "orderedItems". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "orderedItems". Existing
-// elements at that index and higher are shifted back once. Invalidates all
-// iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "orderedItems". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "orderedItems". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "orderedItems". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "orderedItems". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "orderedItems". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "orderedItems". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "orderedItems". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "orderedItems". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "orderedItems". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property
-// "orderedItems". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "orderedItems". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "orderedItems". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "orderedItems". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsOrderedItemsProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsOrderedItemsProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsOrderedItemsProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "orderedItems" property.
-func (this ActivityStreamsOrderedItemsProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsOrderedItemsProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsOrderedItemsProperty) LessThan(o vocab.ActivityStreamsOrderedItemsProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("orderedItems") with any alias.
-func (this ActivityStreamsOrderedItemsProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "orderedItems"
- } else {
- return "orderedItems"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "orderedItems". Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "orderedItems". Invalidates all
-// iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "orderedItems". Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "orderedItems".
-func (this *ActivityStreamsOrderedItemsProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "orderedItems". Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "orderedItems". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsOrderedItemsProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "orderedItems", regardless of its type. Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsOrderedItemsPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsOrderedItemsProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "orderedItems". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "orderedItems". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "orderedItems". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "orderedItems". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "orderedItems". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "orderedItems". Panics if the
-// index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "orderedItems". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "orderedItems". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "orderedItems". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "orderedItems". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "orderedItems". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "orderedItems". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "orderedItems". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "orderedItems". Panics if the index is out of bounds.
-func (this *ActivityStreamsOrderedItemsProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "orderedItems". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "orderedItems". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOrderedItemsProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "orderedItems". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property. Panics if the index is out of
-// bounds.
-func (this *ActivityStreamsOrderedItemsProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsOrderedItemsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "orderedItems"
-// property.
-func (this ActivityStreamsOrderedItemsProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_pkg.go
deleted file mode 100644
index 98eba3a99..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyorigin
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go
deleted file mode 100644
index 3d83911d8..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go
+++ /dev/null
@@ -1,7031 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyorigin
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsOriginPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsOriginPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsOriginProperty
-}
-
-// NewActivityStreamsOriginPropertyIterator creates a new ActivityStreamsOrigin
-// property.
-func NewActivityStreamsOriginPropertyIterator() *ActivityStreamsOriginPropertyIterator {
- return &ActivityStreamsOriginPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsOriginPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsOriginPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsOriginPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOriginPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsOriginPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsOriginPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsOriginPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsOriginPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsOriginPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsOriginPropertyIterator) 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 ActivityStreamsOriginPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsOriginPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStreamsOriginPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsOrigin".
-func (this ActivityStreamsOriginPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsOrigin"
- } else {
- return "ActivityStreamsOrigin"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsOriginPropertyIterator) Next() vocab.ActivityStreamsOriginPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsOriginPropertyIterator) Prev() vocab.ActivityStreamsOriginPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsOriginPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsOrigin property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsOriginPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsOriginProperty is the non-functional property "origin". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsOriginProperty struct {
- properties []*ActivityStreamsOriginPropertyIterator
- alias string
-}
-
-// DeserializeOriginProperty creates a "origin" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeOriginProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsOriginProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "origin"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "origin")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsOriginProperty{
- alias: alias,
- properties: []*ActivityStreamsOriginPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsOriginPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsOriginPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsOriginProperty creates a new origin property.
-func NewActivityStreamsOriginProperty() *ActivityStreamsOriginProperty {
- return &ActivityStreamsOriginProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "origin". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "origin". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "origin". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "origin". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "origin". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "origin". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "origin". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "origin". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "origin". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "origin". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "origin". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "origin". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsOriginProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "origin"
-func (this *ActivityStreamsOriginProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "origin". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsOriginProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "origin". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsOriginProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsOriginProperty) At(index int) vocab.ActivityStreamsOriginPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsOriginProperty) Begin() vocab.ActivityStreamsOriginPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsOriginProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsOriginProperty) End() vocab.ActivityStreamsOriginPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "origin". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "origin". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "origin". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "origin". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "origin". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "origin". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "origin". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "origin". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "origin". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "origin". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "origin". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "origin". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "origin". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "origin". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "origin". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "origin". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "origin". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "origin". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "origin".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "origin". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "origin". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "origin". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsOriginProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsOriginProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsOriginProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "origin" property.
-func (this ActivityStreamsOriginProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsOriginProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsOriginProperty) LessThan(o vocab.ActivityStreamsOriginProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("origin") with any alias.
-func (this ActivityStreamsOriginProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "origin"
- } else {
- return "origin"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "origin". Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "origin". Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "origin".
-func (this *ActivityStreamsOriginProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "origin". Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "origin". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsOriginProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsOriginPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "origin", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsOriginPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsOriginProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "origin". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "origin". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "origin". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "origin". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "origin". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "origin". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "origin". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "origin". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "origin". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "origin". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "origin". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "origin". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "origin". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "origin". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "origin". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "origin". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "origin". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsOriginProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "origin". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsOriginProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "origin". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "origin". Panics if the index is out of bounds.
-func (this *ActivityStreamsOriginProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "origin". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "origin". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsOriginProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "origin". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsOriginProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsOriginPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "origin" property.
-func (this ActivityStreamsOriginProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go
deleted file mode 100644
index b6905981a..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go
+++ /dev/null
@@ -1,27 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyoutbox
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go
deleted file mode 100644
index 4e8874e8c..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go
+++ /dev/null
@@ -1,268 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyoutbox
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsOutboxProperty is the functional property "outbox". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsOutboxProperty struct {
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeOutboxProperty creates a "outbox" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeOutboxProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsOutboxProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "outbox"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "outbox")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsOutboxProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOutboxProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsOutboxProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsOutboxProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsOutboxProperty creates a new outbox property.
-func NewActivityStreamsOutboxProperty() *ActivityStreamsOutboxProperty {
- return &ActivityStreamsOutboxProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsOutboxProperty) Clear() {
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsOutboxProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsOutboxProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsOutboxProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsOutboxProperty) GetType() vocab.Type {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsOutboxProperty) HasAny() bool {
- return this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsOutboxProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsOutboxProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsOutboxProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsOutboxProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsOutboxProperty) KindIndex() int {
- if this.IsActivityStreamsOrderedCollection() {
- return 0
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 1
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsOutboxProperty) LessThan(o vocab.ActivityStreamsOutboxProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "outbox".
-func (this ActivityStreamsOutboxProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "outbox"
- } else {
- return "outbox"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsOutboxProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsOutboxProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsOutboxProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsOutboxProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsOutboxProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on outbox property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_pkg.go
deleted file mode 100644
index a7708d3d0..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_pkg.go
+++ /dev/null
@@ -1,43 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertypartof
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go
deleted file mode 100644
index 7bee379a9..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go
+++ /dev/null
@@ -1,452 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertypartof
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsPartOfProperty is the functional property "partOf". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsPartOfProperty struct {
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializePartOfProperty creates a "partOf" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializePartOfProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPartOfProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "partOf"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "partOf")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsPartOfProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPartOfProperty{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPartOfProperty{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPartOfProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPartOfProperty{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPartOfProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPartOfProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsPartOfProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsPartOfProperty creates a new partOf property.
-func NewActivityStreamsPartOfProperty() *ActivityStreamsPartOfProperty {
- return &ActivityStreamsPartOfProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsPartOfProperty) Clear() {
- this.activitystreamsLinkMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsPartOfProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsPartOfProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsPartOfProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsPartOfProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsPartOfProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsPartOfProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsPartOfProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsPartOfProperty) GetType() vocab.Type {
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsPartOfProperty) HasAny() bool {
- return this.IsActivityStreamsLink() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsPartOfProperty) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsPartOfProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsPartOfProperty) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsPartOfProperty) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsPartOfProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsPartOfProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsPartOfProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsPartOfProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsPartOfProperty) KindIndex() int {
- if this.IsActivityStreamsLink() {
- return 0
- }
- if this.IsActivityStreamsCollection() {
- return 1
- }
- if this.IsActivityStreamsCollectionPage() {
- return 2
- }
- if this.IsActivityStreamsMention() {
- return 3
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 4
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 5
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsPartOfProperty) LessThan(o vocab.ActivityStreamsPartOfProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "partOf".
-func (this ActivityStreamsPartOfProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "partOf"
- } else {
- return "partOf"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsPartOfProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsPartOfProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.Clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsPartOfProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsPartOfProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.Clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsPartOfProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.Clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsPartOfProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsPartOfProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsPartOfProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsPartOfProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on partOf property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go
deleted file mode 100644
index 7053417e1..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go
+++ /dev/null
@@ -1,284 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertypreferredusername
-
-import (
- "fmt"
- langstring "github.com/go-fed/activity/streams/values/langString"
- string1 "github.com/go-fed/activity/streams/values/string"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsPreferredUsernameProperty is the functional property
-// "preferredUsername". It is permitted to be one of multiple value types. At
-// most, one type of value can be present, or none at all. Setting a value
-// will clear the other types of values so that only one of the 'Is' methods
-// will return true. It is possible to clear all values, so that this property
-// is empty.
-type ActivityStreamsPreferredUsernameProperty struct {
- xmlschemaStringMember string
- hasStringMember bool
- rdfLangStringMember map[string]string
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializePreferredUsernameProperty creates a "preferredUsername" property
-// from an interface representation that has been unmarshalled from a text or
-// binary format.
-func DeserializePreferredUsernameProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPreferredUsernameProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "preferredUsername"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "preferredUsername")
- }
- i, ok := m[propName]
- if !ok {
- // Attempt to find the map instead.
- i, ok = m[propName+"Map"]
- }
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsPreferredUsernameProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := string1.DeserializeString(i); err == nil {
- this := &ActivityStreamsPreferredUsernameProperty{
- alias: alias,
- hasStringMember: true,
- xmlschemaStringMember: v,
- }
- return this, nil
- } else if v, err := langstring.DeserializeLangString(i); err == nil {
- this := &ActivityStreamsPreferredUsernameProperty{
- alias: alias,
- rdfLangStringMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsPreferredUsernameProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsPreferredUsernameProperty creates a new preferredUsername
-// property.
-func NewActivityStreamsPreferredUsernameProperty() *ActivityStreamsPreferredUsernameProperty {
- return &ActivityStreamsPreferredUsernameProperty{alias: ""}
-}
-
-// Clear ensures no value and no language map for this property is set. Calling
-// HasAny or any of the 'Is' methods afterwards will return false.
-func (this *ActivityStreamsPreferredUsernameProperty) Clear() {
- this.hasStringMember = false
- this.rdfLangStringMember = nil
- this.unknown = nil
- this.iri = nil
- this.rdfLangStringMember = nil
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsPreferredUsernameProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetLanguage returns the value for the specified BCP47 language code, or an
-// empty string if it is either not a language map or no value is present.
-func (this ActivityStreamsPreferredUsernameProperty) GetLanguage(bcp47 string) string {
- if this.rdfLangStringMember == nil {
- return ""
- } else if v, ok := this.rdfLangStringMember[bcp47]; ok {
- return v
- } else {
- return ""
- }
-}
-
-// GetRDFLangString returns the value of this property. When IsRDFLangString
-// returns false, GetRDFLangString will return an arbitrary value.
-func (this ActivityStreamsPreferredUsernameProperty) GetRDFLangString() map[string]string {
- return this.rdfLangStringMember
-}
-
-// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString
-// returns false, GetXMLSchemaString will return an arbitrary value.
-func (this ActivityStreamsPreferredUsernameProperty) GetXMLSchemaString() string {
- return this.xmlschemaStringMember
-}
-
-// HasAny returns true if any of the values are set, except for the natural
-// language map. When true, the specific has, getter, and setter methods may
-// be used to determine what kind of value there is to access and set this
-// property. To determine if the property was set as a natural language map,
-// use the IsRDFLangString method instead.
-func (this ActivityStreamsPreferredUsernameProperty) HasAny() bool {
- return this.IsXMLSchemaString() ||
- this.IsRDFLangString() ||
- this.iri != nil
-}
-
-// HasLanguage returns true if the natural language map has an entry for the
-// specified BCP47 language code.
-func (this ActivityStreamsPreferredUsernameProperty) HasLanguage(bcp47 string) bool {
- if this.rdfLangStringMember == nil {
- return false
- } else {
- _, ok := this.rdfLangStringMember[bcp47]
- return ok
- }
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsPreferredUsernameProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsRDFLangString returns true if this property has a type of "langString". When
-// true, use the GetRDFLangString and SetRDFLangString methods to access and
-// set this property.. To determine if the property was set as a natural
-// language map, use the IsRDFLangString method instead.
-func (this ActivityStreamsPreferredUsernameProperty) IsRDFLangString() bool {
- return this.rdfLangStringMember != nil
-}
-
-// IsXMLSchemaString returns true if this property has a type of "string". When
-// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access
-// and set this property.. To determine if the property was set as a natural
-// language map, use the IsRDFLangString method instead.
-func (this ActivityStreamsPreferredUsernameProperty) IsXMLSchemaString() bool {
- return this.hasStringMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsPreferredUsernameProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsPreferredUsernameProperty) KindIndex() int {
- if this.IsXMLSchemaString() {
- return 0
- }
- if this.IsRDFLangString() {
- return 1
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsPreferredUsernameProperty) LessThan(o vocab.ActivityStreamsPreferredUsernameProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsXMLSchemaString() {
- return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString())
- } else if this.IsRDFLangString() {
- return langstring.LessLangString(this.GetRDFLangString(), o.GetRDFLangString())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "preferredUsername".
-func (this ActivityStreamsPreferredUsernameProperty) Name() string {
- if this.IsRDFLangString() {
- return "preferredUsernameMap"
- } else {
- return "preferredUsername"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsPreferredUsernameProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaString() {
- return string1.SerializeString(this.GetXMLSchemaString())
- } else if this.IsRDFLangString() {
- return langstring.SerializeLangString(this.GetRDFLangString())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsPreferredUsernameProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetLanguage sets the value for the specified BCP47 language code.
-func (this *ActivityStreamsPreferredUsernameProperty) SetLanguage(bcp47, value string) {
- this.hasStringMember = false
- this.rdfLangStringMember = nil
- this.unknown = nil
- this.iri = nil
- if this.rdfLangStringMember == nil {
- this.rdfLangStringMember = make(map[string]string)
- }
- this.rdfLangStringMember[bcp47] = value
-}
-
-// SetRDFLangString sets the value of this property and clears the natural
-// language map. Calling IsRDFLangString afterwards will return true. Calling
-// IsRDFLangString afterwards returns false.
-func (this *ActivityStreamsPreferredUsernameProperty) SetRDFLangString(v map[string]string) {
- this.Clear()
- this.rdfLangStringMember = v
-}
-
-// SetXMLSchemaString sets the value of this property and clears the natural
-// language map. Calling IsXMLSchemaString afterwards will return true.
-// Calling IsRDFLangString afterwards returns false.
-func (this *ActivityStreamsPreferredUsernameProperty) SetXMLSchemaString(v string) {
- this.Clear()
- this.xmlschemaStringMember = v
- this.hasStringMember = true
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_pkg.go
deleted file mode 100644
index e52b7048c..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyprev
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // 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)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go
deleted file mode 100644
index cdc28e40f..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go
+++ /dev/null
@@ -1,359 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyprev
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsPrevProperty is the functional property "prev". It is permitted
-// to be one of multiple value types. At most, one type of value can be
-// present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsPrevProperty struct {
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializePrevProperty creates a "prev" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializePrevProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPrevProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "prev"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "prev")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsPrevProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPrevProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPrevProperty{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPrevProperty{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPrevProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsPrevProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsPrevProperty creates a new prev property.
-func NewActivityStreamsPrevProperty() *ActivityStreamsPrevProperty {
- return &ActivityStreamsPrevProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsPrevProperty) Clear() {
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsPrevProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsPrevProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsPrevProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsPrevProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsPrevProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsPrevProperty) GetType() vocab.Type {
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsPrevProperty) HasAny() bool {
- return this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsPrevProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsPrevProperty) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsPrevProperty) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsPrevProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsPrevProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsPrevProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsPrevProperty) KindIndex() int {
- if this.IsActivityStreamsCollectionPage() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsMention() {
- 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 ActivityStreamsPrevProperty) LessThan(o vocab.ActivityStreamsPrevProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "prev".
-func (this ActivityStreamsPrevProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "prev"
- } else {
- return "prev"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsPrevProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsPrevProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsPrevProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.Clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsPrevProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.Clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsPrevProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsPrevProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsPrevProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on prev property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_pkg.go
deleted file mode 100644
index 270923db5..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertypreview
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go
deleted file mode 100644
index c1dcd7672..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go
+++ /dev/null
@@ -1,7042 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertypreview
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsPreviewPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsPreviewPropertyIterator struct {
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsPreviewProperty
-}
-
-// NewActivityStreamsPreviewPropertyIterator creates a new ActivityStreamsPreview
-// property.
-func NewActivityStreamsPreviewPropertyIterator() *ActivityStreamsPreviewPropertyIterator {
- return &ActivityStreamsPreviewPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsPreviewPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsPreviewPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsPreviewPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsPreviewPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsPreviewPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsPreviewPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsLink() ||
- 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.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsPreviewPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsPreviewPropertyIterator) 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 ActivityStreamsPreviewPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsPreviewPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsLink() {
- return 0
- }
- if this.IsActivityStreamsObject() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStreamsPreviewPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsPreview".
-func (this ActivityStreamsPreviewPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsPreview"
- } else {
- return "ActivityStreamsPreview"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsPreviewPropertyIterator) Next() vocab.ActivityStreamsPreviewPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsPreviewPropertyIterator) Prev() vocab.ActivityStreamsPreviewPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsPreviewPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsPreview property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsPreviewPropertyIterator) clear() {
- this.activitystreamsLinkMember = nil
- this.activitystreamsObjectMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsPreviewProperty is the non-functional property "preview". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsPreviewProperty struct {
- properties []*ActivityStreamsPreviewPropertyIterator
- alias string
-}
-
-// DeserializePreviewProperty creates a "preview" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializePreviewProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsPreviewProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "preview"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "preview")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsPreviewProperty{
- alias: alias,
- properties: []*ActivityStreamsPreviewPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsPreviewPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsPreviewPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsPreviewProperty creates a new preview property.
-func NewActivityStreamsPreviewProperty() *ActivityStreamsPreviewProperty {
- return &ActivityStreamsPreviewProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "preview". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "preview". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "preview". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "preview". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "preview". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "preview". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "preview". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "preview". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "preview". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "preview". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "preview". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "preview"
-func (this *ActivityStreamsPreviewProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "preview". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsPreviewProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "preview". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsPreviewProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "preview". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsPreviewProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsPreviewProperty) At(index int) vocab.ActivityStreamsPreviewPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsPreviewProperty) Begin() vocab.ActivityStreamsPreviewPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsPreviewProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsPreviewProperty) End() vocab.ActivityStreamsPreviewPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "preview". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "preview". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "preview". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "preview". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "preview". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "preview". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "preview". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "preview". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "preview". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "preview". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "preview". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "preview". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "preview". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "preview".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "preview". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "preview". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "preview". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsPreviewProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsPreviewProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsPreviewProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "preview" property.
-func (this ActivityStreamsPreviewProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsPreviewProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsPreviewProperty) LessThan(o vocab.ActivityStreamsPreviewProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("preview") with any alias.
-func (this ActivityStreamsPreviewProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "preview"
- } else {
- return "preview"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "preview". Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "preview". Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "preview".
-func (this *ActivityStreamsPreviewProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "preview". Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "preview". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsPreviewProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsPreviewPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "preview", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsPreviewPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsPreviewProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "preview". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "preview". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "preview". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "preview". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "preview". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "preview". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "preview". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "preview". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "preview". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "preview". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "preview". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "preview". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "preview". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "preview". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "preview". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "preview". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "preview". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsPreviewProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "preview". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsPreviewProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "preview". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "preview". Panics if the index is out of bounds.
-func (this *ActivityStreamsPreviewProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "preview". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "preview". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsPreviewProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "preview". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsPreviewProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsPreviewPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "preview" property.
-func (this ActivityStreamsPreviewProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go
deleted file mode 100644
index a1b627c60..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertypublished
-
-import (
- "fmt"
- datetime "github.com/go-fed/activity/streams/values/dateTime"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
- "time"
-)
-
-// ActivityStreamsPublishedProperty is the functional property "published". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsPublishedProperty struct {
- xmlschemaDateTimeMember time.Time
- hasDateTimeMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializePublishedProperty creates a "published" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializePublishedProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsPublishedProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "published"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "published")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsPublishedProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := datetime.DeserializeDateTime(i); err == nil {
- this := &ActivityStreamsPublishedProperty{
- alias: alias,
- hasDateTimeMember: true,
- xmlschemaDateTimeMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsPublishedProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsPublishedProperty creates a new published property.
-func NewActivityStreamsPublishedProperty() *ActivityStreamsPublishedProperty {
- return &ActivityStreamsPublishedProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime
-// afterwards will return false.
-func (this *ActivityStreamsPublishedProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasDateTimeMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaDateTime returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsPublishedProperty) Get() time.Time {
- return this.xmlschemaDateTimeMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsPublishedProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsPublishedProperty) HasAny() bool {
- return this.IsXMLSchemaDateTime() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsPublishedProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaDateTime returns true if this property is set and not an IRI.
-func (this ActivityStreamsPublishedProperty) IsXMLSchemaDateTime() bool {
- return this.hasDateTimeMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsPublishedProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsPublishedProperty) KindIndex() int {
- if this.IsXMLSchemaDateTime() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsPublishedProperty) LessThan(o vocab.ActivityStreamsPublishedProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return datetime.LessDateTime(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "published".
-func (this ActivityStreamsPublishedProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "published"
- } else {
- return "published"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsPublishedProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaDateTime() {
- return datetime.SerializeDateTime(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards
-// will return true.
-func (this *ActivityStreamsPublishedProperty) Set(v time.Time) {
- this.Clear()
- this.xmlschemaDateTimeMember = v
- this.hasDateTimeMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsPublishedProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go
deleted file mode 100644
index 98d7b4884..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyradius
-
-import (
- "fmt"
- float "github.com/go-fed/activity/streams/values/float"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsRadiusProperty is the functional property "radius". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsRadiusProperty struct {
- xmlschemaFloatMember float64
- hasFloatMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeRadiusProperty creates a "radius" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeRadiusProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsRadiusProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "radius"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "radius")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsRadiusProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := float.DeserializeFloat(i); err == nil {
- this := &ActivityStreamsRadiusProperty{
- alias: alias,
- hasFloatMember: true,
- xmlschemaFloatMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsRadiusProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsRadiusProperty creates a new radius property.
-func NewActivityStreamsRadiusProperty() *ActivityStreamsRadiusProperty {
- return &ActivityStreamsRadiusProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaFloat
-// afterwards will return false.
-func (this *ActivityStreamsRadiusProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasFloatMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaFloat returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsRadiusProperty) Get() float64 {
- return this.xmlschemaFloatMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsRadiusProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsRadiusProperty) HasAny() bool {
- return this.IsXMLSchemaFloat() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsRadiusProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaFloat returns true if this property is set and not an IRI.
-func (this ActivityStreamsRadiusProperty) IsXMLSchemaFloat() bool {
- return this.hasFloatMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsRadiusProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsRadiusProperty) KindIndex() int {
- if this.IsXMLSchemaFloat() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsRadiusProperty) LessThan(o vocab.ActivityStreamsRadiusProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaFloat() && !o.IsXMLSchemaFloat() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaFloat() && o.IsXMLSchemaFloat() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return float.LessFloat(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "radius".
-func (this ActivityStreamsRadiusProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "radius"
- } else {
- return "radius"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsRadiusProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaFloat() {
- return float.SerializeFloat(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaFloat afterwards will
-// return true.
-func (this *ActivityStreamsRadiusProperty) Set(v float64) {
- this.Clear()
- this.xmlschemaFloatMember = v
- this.hasFloatMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsRadiusProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go
deleted file mode 100644
index f102e2358..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go
+++ /dev/null
@@ -1,528 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyrel
-
-import (
- "fmt"
- rfc5988 "github.com/go-fed/activity/streams/values/rfc5988"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsRelPropertyIterator is an iterator for a property. It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsRelPropertyIterator struct {
- rfcRfc5988Member string
- hasRfc5988Member bool
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsRelProperty
-}
-
-// NewActivityStreamsRelPropertyIterator creates a new ActivityStreamsRel property.
-func NewActivityStreamsRelPropertyIterator() *ActivityStreamsRelPropertyIterator {
- return &ActivityStreamsRelPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsRelPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsRelPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsRelPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsRelPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := rfc5988.DeserializeRfc5988(i); err == nil {
- this := &ActivityStreamsRelPropertyIterator{
- alias: alias,
- hasRfc5988Member: true,
- rfcRfc5988Member: v,
- }
- return this, nil
- }
- this := &ActivityStreamsRelPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// Get returns the value of this property. When IsRFCRfc5988 returns false, Get
-// will return any arbitrary value.
-func (this ActivityStreamsRelPropertyIterator) Get() string {
- return this.rfcRfc5988Member
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsRelPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsRelPropertyIterator) HasAny() bool {
- return this.IsRFCRfc5988() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsRelPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsRFCRfc5988 returns true if this property is set and not an IRI.
-func (this ActivityStreamsRelPropertyIterator) IsRFCRfc5988() bool {
- return this.hasRfc5988Member
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsRelPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsRelPropertyIterator) KindIndex() int {
- if this.IsRFCRfc5988() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsRelPropertyIterator) LessThan(o vocab.ActivityStreamsRelPropertyIterator) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsRFCRfc5988() && !o.IsRFCRfc5988() {
- // Both are unknowns.
- return false
- } else if this.IsRFCRfc5988() && !o.IsRFCRfc5988() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsRFCRfc5988() && o.IsRFCRfc5988() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return rfc5988.LessRfc5988(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "ActivityStreamsRel".
-func (this ActivityStreamsRelPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsRel"
- } else {
- return "ActivityStreamsRel"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsRelPropertyIterator) Next() vocab.ActivityStreamsRelPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsRelPropertyIterator) Prev() vocab.ActivityStreamsRelPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// Set sets the value of this property. Calling IsRFCRfc5988 afterwards will
-// return true.
-func (this *ActivityStreamsRelPropertyIterator) Set(v string) {
- this.clear()
- this.rfcRfc5988Member = v
- this.hasRfc5988Member = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsRelPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// clear ensures no value of this property is set. Calling IsRFCRfc5988 afterwards
-// will return false.
-func (this *ActivityStreamsRelPropertyIterator) clear() {
- this.unknown = nil
- this.iri = nil
- this.hasRfc5988Member = false
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsRelPropertyIterator) serialize() (interface{}, error) {
- if this.IsRFCRfc5988() {
- return rfc5988.SerializeRfc5988(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsRelProperty is the non-functional property "rel". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsRelProperty struct {
- properties []*ActivityStreamsRelPropertyIterator
- alias string
-}
-
-// DeserializeRelProperty creates a "rel" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeRelProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "rel"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "rel")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsRelProperty{
- alias: alias,
- properties: []*ActivityStreamsRelPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsRelPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsRelPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsRelProperty creates a new rel property.
-func NewActivityStreamsRelProperty() *ActivityStreamsRelProperty {
- return &ActivityStreamsRelProperty{alias: ""}
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "rel"
-func (this *ActivityStreamsRelProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsRelPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendRFCRfc5988 appends a rfc5988 value to the back of a list of the property
-// "rel". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsRelProperty) AppendRFCRfc5988(v string) {
- this.properties = append(this.properties, &ActivityStreamsRelPropertyIterator{
- alias: this.alias,
- hasRfc5988Member: true,
- myIdx: this.Len(),
- parent: this,
- rfcRfc5988Member: v,
- })
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsRelProperty) At(index int) vocab.ActivityStreamsRelPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsRelProperty) Begin() vocab.ActivityStreamsRelPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsRelProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsRelProperty) End() vocab.ActivityStreamsRelPropertyIterator {
- return nil
-}
-
-// Insert inserts an IRI value at the specified index for a property "rel".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertRFCRfc5988 inserts a rfc5988 value at the specified index for a property
-// "rel". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelProperty) InsertRFCRfc5988(idx int, v string) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelPropertyIterator{
- alias: this.alias,
- hasRfc5988Member: true,
- myIdx: idx,
- parent: this,
- rfcRfc5988Member: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsRelProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsRelProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "rel" property.
-func (this ActivityStreamsRelProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsRelProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].Get()
- rhs := this.properties[j].Get()
- return rfc5988.LessRfc5988(lhs, rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsRelProperty) LessThan(o vocab.ActivityStreamsRelProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("rel") with any alias.
-func (this ActivityStreamsRelProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "rel"
- } else {
- return "rel"
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "rel".
-func (this *ActivityStreamsRelProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsRelPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependRFCRfc5988 prepends a rfc5988 value to the front of a list of the
-// property "rel". Invalidates all iterators.
-func (this *ActivityStreamsRelProperty) PrependRFCRfc5988(v string) {
- this.properties = append([]*ActivityStreamsRelPropertyIterator{{
- alias: this.alias,
- hasRfc5988Member: true,
- myIdx: 0,
- parent: this,
- rfcRfc5988Member: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "rel", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsRelPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsRelProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// Set sets a rfc5988 value to be at the specified index for the property "rel".
-// Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelProperty) Set(idx int, v string) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelPropertyIterator{
- alias: this.alias,
- hasRfc5988Member: true,
- myIdx: idx,
- parent: this,
- rfcRfc5988Member: v,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "rel".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsRelProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// Swap swaps the location of values at two indices for the "rel" property.
-func (this ActivityStreamsRelProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go
deleted file mode 100644
index 4c63d8db2..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go
+++ /dev/null
@@ -1,257 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyrelationship
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go
deleted file mode 100644
index 5dc71e782..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go
+++ /dev/null
@@ -1,6877 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyrelationship
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsRelationshipPropertyIterator is an iterator for a property. It
-// is permitted to be one of multiple value types. At most, one type of value
-// can be present, or none at all. Setting a value will clear the other types
-// of values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsRelationshipPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsRelationshipProperty
-}
-
-// NewActivityStreamsRelationshipPropertyIterator creates a new
-// ActivityStreamsRelationship property.
-func NewActivityStreamsRelationshipPropertyIterator() *ActivityStreamsRelationshipPropertyIterator {
- return &ActivityStreamsRelationshipPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsRelationshipPropertyIterator creates an iterator from
-// an element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsRelationshipPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsRelationshipPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsRelationshipPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsRelationshipPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsTootEmoji() bool {
- return this.tootEmojiMember != nil
-}
-
-// IsTootIdentityProof returns true if this property has a type of
-// "IdentityProof". When true, use the GetTootIdentityProof and
-// SetTootIdentityProof methods to access and set this property.
-func (this ActivityStreamsRelationshipPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsAccept() {
- return 1
- }
- if this.IsActivityStreamsActivity() {
- return 2
- }
- if this.IsActivityStreamsAdd() {
- return 3
- }
- if this.IsActivityStreamsAnnounce() {
- return 4
- }
- if this.IsActivityStreamsApplication() {
- return 5
- }
- if this.IsActivityStreamsArrive() {
- return 6
- }
- if this.IsActivityStreamsArticle() {
- return 7
- }
- if this.IsActivityStreamsAudio() {
- return 8
- }
- if this.IsActivityStreamsBlock() {
- return 9
- }
- if this.IsForgeFedBranch() {
- return 10
- }
- if this.IsActivityStreamsCollection() {
- return 11
- }
- if this.IsActivityStreamsCollectionPage() {
- return 12
- }
- if this.IsForgeFedCommit() {
- return 13
- }
- if this.IsActivityStreamsCreate() {
- return 14
- }
- if this.IsActivityStreamsDelete() {
- return 15
- }
- if this.IsActivityStreamsDislike() {
- return 16
- }
- if this.IsActivityStreamsDocument() {
- return 17
- }
- if this.IsTootEmoji() {
- return 18
- }
- if this.IsActivityStreamsEvent() {
- return 19
- }
- if this.IsActivityStreamsFlag() {
- return 20
- }
- if this.IsActivityStreamsFollow() {
- return 21
- }
- if this.IsActivityStreamsGroup() {
- return 22
- }
- if this.IsTootIdentityProof() {
- return 23
- }
- if this.IsActivityStreamsIgnore() {
- return 24
- }
- if this.IsActivityStreamsImage() {
- return 25
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 26
- }
- if this.IsActivityStreamsInvite() {
- return 27
- }
- if this.IsActivityStreamsJoin() {
- return 28
- }
- if this.IsActivityStreamsLeave() {
- return 29
- }
- if this.IsActivityStreamsLike() {
- return 30
- }
- if this.IsActivityStreamsListen() {
- return 31
- }
- if this.IsActivityStreamsMove() {
- return 32
- }
- if this.IsActivityStreamsNote() {
- return 33
- }
- if this.IsActivityStreamsOffer() {
- return 34
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 35
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 36
- }
- if this.IsActivityStreamsOrganization() {
- return 37
- }
- if this.IsActivityStreamsPage() {
- return 38
- }
- if this.IsActivityStreamsPerson() {
- return 39
- }
- if this.IsActivityStreamsPlace() {
- return 40
- }
- if this.IsActivityStreamsProfile() {
- return 41
- }
- if this.IsForgeFedPush() {
- return 42
- }
- if this.IsActivityStreamsQuestion() {
- return 43
- }
- if this.IsActivityStreamsRead() {
- return 44
- }
- if this.IsActivityStreamsReject() {
- return 45
- }
- if this.IsActivityStreamsRelationship() {
- return 46
- }
- if this.IsActivityStreamsRemove() {
- return 47
- }
- if this.IsForgeFedRepository() {
- return 48
- }
- if this.IsActivityStreamsService() {
- return 49
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 50
- }
- if this.IsActivityStreamsTentativeReject() {
- return 51
- }
- if this.IsForgeFedTicket() {
- return 52
- }
- if this.IsForgeFedTicketDependency() {
- return 53
- }
- if this.IsActivityStreamsTombstone() {
- return 54
- }
- if this.IsActivityStreamsTravel() {
- return 55
- }
- if this.IsActivityStreamsUndo() {
- return 56
- }
- if this.IsActivityStreamsUpdate() {
- return 57
- }
- if this.IsActivityStreamsVideo() {
- return 58
- }
- if this.IsActivityStreamsView() {
- return 59
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.ActivityStreamsRelationshipPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsRelationship".
-func (this ActivityStreamsRelationshipPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsRelationship"
- } else {
- return "ActivityStreamsRelationship"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsRelationshipPropertyIterator) Next() vocab.ActivityStreamsRelationshipPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsRelationshipPropertyIterator) Prev() vocab.ActivityStreamsRelationshipPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsRelationship property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsRelationshipPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsRelationshipProperty is the non-functional property
-// "relationship". It is permitted to have one or more values, and of
-// different value types.
-type ActivityStreamsRelationshipProperty struct {
- properties []*ActivityStreamsRelationshipPropertyIterator
- alias string
-}
-
-// DeserializeRelationshipProperty creates a "relationship" property from an
-// interface representation that has been unmarshalled from a text or binary
-// format.
-func DeserializeRelationshipProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsRelationshipProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "relationship"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "relationship")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsRelationshipProperty{
- alias: alias,
- properties: []*ActivityStreamsRelationshipPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsRelationshipPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsRelationshipPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsRelationshipProperty creates a new relationship property.
-func NewActivityStreamsRelationshipProperty() *ActivityStreamsRelationshipProperty {
- return &ActivityStreamsRelationshipProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "relationship". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "relationship". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "relationship". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "relationship". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "relationship". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "relationship". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "relationship". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "relationship". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "relationship". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "relationship". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "relationship". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "relationship". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property
-// "relationship"
-func (this *ActivityStreamsRelationshipProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "relationship". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "relationship". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsRelationshipProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "relationship". Invalidates iterators that are traversing using
-// Prev. Returns an error if the type is not a valid one to set for this
-// property.
-func (this *ActivityStreamsRelationshipProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsRelationshipProperty) At(index int) vocab.ActivityStreamsRelationshipPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsRelationshipProperty) Begin() vocab.ActivityStreamsRelationshipPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsRelationshipProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsRelationshipProperty) End() vocab.ActivityStreamsRelationshipPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "relationship". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "relationship". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "relationship". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "relationship". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "relationship". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "relationship". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "relationship". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "relationship". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "relationship". Existing
-// elements at that index and higher are shifted back once. Invalidates all
-// iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "relationship". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "relationship". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "relationship". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "relationship". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "relationship". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "relationship". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "relationship". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "relationship". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "relationship". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property
-// "relationship". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "relationship". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "relationship". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "relationship". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsRelationshipProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsRelationshipProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsRelationshipProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "relationship" property.
-func (this ActivityStreamsRelationshipProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsRelationshipProperty) LessThan(o vocab.ActivityStreamsRelationshipProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("relationship") with any alias.
-func (this ActivityStreamsRelationshipProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "relationship"
- } else {
- return "relationship"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "relationship". Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "relationship". Invalidates all
-// iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "relationship". Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "relationship".
-func (this *ActivityStreamsRelationshipProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "relationship". Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "relationship". Invalidates all iterators. Returns an error if the
-// type is not a valid one to set for this property.
-func (this *ActivityStreamsRelationshipProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "relationship", regardless of its type. Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsRelationshipPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsRelationshipProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "relationship". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "relationship". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "relationship". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "relationship". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "relationship". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "relationship". Panics if the
-// index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "relationship". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "relationship". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "relationship". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "relationship". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "relationship". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsRelationshipProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "relationship". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "relationship". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "relationship". Panics if the index is out of bounds.
-func (this *ActivityStreamsRelationshipProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "relationship". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsRelationshipProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "relationship". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsRelationshipProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "relationship". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property. Panics if the index is out of
-// bounds.
-func (this *ActivityStreamsRelationshipProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsRelationshipPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "relationship"
-// property.
-func (this ActivityStreamsRelationshipProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_pkg.go
deleted file mode 100644
index b87cc931b..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyreplies
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go
deleted file mode 100644
index 8213e0a49..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go
+++ /dev/null
@@ -1,360 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyreplies
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsRepliesProperty is the functional property "replies". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsRepliesProperty struct {
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeRepliesProperty creates a "replies" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeRepliesProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsRepliesProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "replies"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "replies")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsRepliesProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRepliesProperty{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRepliesProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRepliesProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsRepliesProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsRepliesProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsRepliesProperty creates a new replies property.
-func NewActivityStreamsRepliesProperty() *ActivityStreamsRepliesProperty {
- return &ActivityStreamsRepliesProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsRepliesProperty) Clear() {
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsRepliesProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsRepliesProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsRepliesProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsRepliesProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsRepliesProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsRepliesProperty) GetType() vocab.Type {
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsRepliesProperty) HasAny() bool {
- return this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsRepliesProperty) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsRepliesProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsRepliesProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsRepliesProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsRepliesProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsRepliesProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsRepliesProperty) KindIndex() int {
- if this.IsActivityStreamsCollection() {
- return 0
- }
- if this.IsActivityStreamsCollectionPage() {
- return 1
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 2
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 3
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsRepliesProperty) LessThan(o vocab.ActivityStreamsRepliesProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "replies".
-func (this ActivityStreamsRepliesProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "replies"
- } else {
- return "replies"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsRepliesProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsRepliesProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.Clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsRepliesProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsRepliesProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsRepliesProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsRepliesProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsRepliesProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on replies property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_pkg.go
deleted file mode 100644
index b7dcf088b..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyresult
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go
deleted file mode 100644
index d2644133d..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go
+++ /dev/null
@@ -1,7031 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyresult
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsResultPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsResultPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsResultProperty
-}
-
-// NewActivityStreamsResultPropertyIterator creates a new ActivityStreamsResult
-// property.
-func NewActivityStreamsResultPropertyIterator() *ActivityStreamsResultPropertyIterator {
- return &ActivityStreamsResultPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsResultPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsResultPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsResultPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsResultPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsResultPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsResultPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsResultPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsResultPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsResultPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsResultPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsResultPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsResultPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsResultPropertyIterator) 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 ActivityStreamsResultPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsResultPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStreamsResultPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsResult".
-func (this ActivityStreamsResultPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsResult"
- } else {
- return "ActivityStreamsResult"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsResultPropertyIterator) Next() vocab.ActivityStreamsResultPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsResultPropertyIterator) Prev() vocab.ActivityStreamsResultPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsResultPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsResult property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsResultPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsResultProperty is the non-functional property "result". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsResultProperty struct {
- properties []*ActivityStreamsResultPropertyIterator
- alias string
-}
-
-// DeserializeResultProperty creates a "result" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeResultProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsResultProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "result"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "result")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsResultProperty{
- alias: alias,
- properties: []*ActivityStreamsResultPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsResultPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsResultPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsResultProperty creates a new result property.
-func NewActivityStreamsResultProperty() *ActivityStreamsResultProperty {
- return &ActivityStreamsResultProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "result". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "result". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "result". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "result". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "result". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "result". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "result". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "result". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "result". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "result". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "result". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "result". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsResultProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "result"
-func (this *ActivityStreamsResultProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "result". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsResultProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "result". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsResultProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsResultProperty) At(index int) vocab.ActivityStreamsResultPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsResultProperty) Begin() vocab.ActivityStreamsResultPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsResultProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsResultProperty) End() vocab.ActivityStreamsResultPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "result". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "result". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "result". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "result". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "result". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "result". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "result". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "result". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "result". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "result". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "result". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "result". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "result". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "result". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "result". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "result". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "result". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "result". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "result".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "result". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "result". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "result". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsResultProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsResultProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsResultProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "result" property.
-func (this ActivityStreamsResultProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsResultProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsResultProperty) LessThan(o vocab.ActivityStreamsResultProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("result") with any alias.
-func (this ActivityStreamsResultProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "result"
- } else {
- return "result"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "result". Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "result". Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "result".
-func (this *ActivityStreamsResultProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "result". Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsResultPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "result". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsResultProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsResultPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "result", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsResultPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsResultProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "result". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "result". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "result". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "result". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "result". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "result". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "result". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "result". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "result". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "result". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "result". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "result". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "result". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "result". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "result". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "result". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "result". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsResultProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "result". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsResultProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "result". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "result". Panics if the index is out of bounds.
-func (this *ActivityStreamsResultProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "result". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "result". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsResultProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "result". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsResultProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsResultPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "result" property.
-func (this ActivityStreamsResultProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_pkg.go
deleted file mode 100644
index 5e5c55a03..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyshares
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go
deleted file mode 100644
index 17d6b3b4e..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go
+++ /dev/null
@@ -1,360 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyshares
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsSharesProperty is the functional property "shares". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsSharesProperty struct {
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeSharesProperty creates a "shares" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeSharesProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsSharesProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "shares"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "shares")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsSharesProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSharesProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSharesProperty{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSharesProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSharesProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsSharesProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsSharesProperty creates a new shares property.
-func NewActivityStreamsSharesProperty() *ActivityStreamsSharesProperty {
- return &ActivityStreamsSharesProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsSharesProperty) Clear() {
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsSharesProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsSharesProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsSharesProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsSharesProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsSharesProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsSharesProperty) GetType() vocab.Type {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsSharesProperty) HasAny() bool {
- return this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsSharesProperty) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsSharesProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsSharesProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsSharesProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsSharesProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsSharesProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsSharesProperty) KindIndex() int {
- if this.IsActivityStreamsOrderedCollection() {
- return 0
- }
- if this.IsActivityStreamsCollection() {
- return 1
- }
- if this.IsActivityStreamsCollectionPage() {
- return 2
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 3
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsSharesProperty) LessThan(o vocab.ActivityStreamsSharesProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "shares".
-func (this ActivityStreamsSharesProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "shares"
- } else {
- return "shares"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsSharesProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsSharesProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.Clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsSharesProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsSharesProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsSharesProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsSharesProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsSharesProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on shares property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go
deleted file mode 100644
index 3ed50bcbe..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertysource
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go
deleted file mode 100644
index 35acec7c3..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go
+++ /dev/null
@@ -1,3024 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertysource
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsSourceProperty is the functional property "source". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsSourceProperty struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeSourceProperty creates a "source" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsSourceProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "source"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "source")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsSourceProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSourceProperty{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsSourceProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsSourceProperty creates a new source property.
-func NewActivityStreamsSourceProperty() *ActivityStreamsSourceProperty {
- return &ActivityStreamsSourceProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsSourceProperty) Clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsSourceProperty) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsSourceProperty) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsSourceProperty) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsSourceProperty) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsSourceProperty) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsSourceProperty) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsSourceProperty) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsSourceProperty) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsSourceProperty) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsSourceProperty) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsSourceProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsTootEmoji() bool {
- return this.tootEmojiMember != nil
-}
-
-// IsTootIdentityProof returns true if this property has a type of
-// "IdentityProof". When true, use the GetTootIdentityProof and
-// SetTootIdentityProof methods to access and set this property.
-func (this ActivityStreamsSourceProperty) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsSourceProperty) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSourceProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "source".
-func (this ActivityStreamsSourceProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "source"
- } else {
- return "source"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.Clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.Clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.Clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.Clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.Clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.Clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.Clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.Clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.Clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.Clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.Clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.Clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.Clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.Clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.Clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.Clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.Clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.Clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.Clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.Clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.Clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.Clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.Clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.Clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.Clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.Clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.Clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.Clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.Clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.Clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.Clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.Clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.Clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.Clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.Clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.Clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.Clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.Clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.Clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.Clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.Clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.Clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.Clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.Clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.Clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.Clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.Clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.Clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.Clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.Clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.Clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.Clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.Clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.Clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.Clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.Clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.Clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsSourceProperty) SetTootEmoji(v vocab.TootEmoji) {
- this.Clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsSourceProperty) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.Clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on source property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go
deleted file mode 100644
index 29c57b906..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertystartindex
-
-import (
- "fmt"
- nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsStartIndexProperty is the functional property "startIndex". It
-// is permitted to be a single default-valued value type.
-type ActivityStreamsStartIndexProperty struct {
- xmlschemaNonNegativeIntegerMember int
- hasNonNegativeIntegerMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeStartIndexProperty creates a "startIndex" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeStartIndexProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsStartIndexProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "startIndex"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "startIndex")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsStartIndexProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil {
- this := &ActivityStreamsStartIndexProperty{
- alias: alias,
- hasNonNegativeIntegerMember: true,
- xmlschemaNonNegativeIntegerMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsStartIndexProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsStartIndexProperty creates a new startIndex property.
-func NewActivityStreamsStartIndexProperty() *ActivityStreamsStartIndexProperty {
- return &ActivityStreamsStartIndexProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling
-// IsXMLSchemaNonNegativeInteger afterwards will return false.
-func (this *ActivityStreamsStartIndexProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasNonNegativeIntegerMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger
-// returns false, Get will return any arbitrary value.
-func (this ActivityStreamsStartIndexProperty) Get() int {
- return this.xmlschemaNonNegativeIntegerMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsStartIndexProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsStartIndexProperty) HasAny() bool {
- return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsStartIndexProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an
-// IRI.
-func (this ActivityStreamsStartIndexProperty) IsXMLSchemaNonNegativeInteger() bool {
- return this.hasNonNegativeIntegerMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsStartIndexProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsStartIndexProperty) KindIndex() int {
- if this.IsXMLSchemaNonNegativeInteger() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsStartIndexProperty) LessThan(o vocab.ActivityStreamsStartIndexProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "startIndex".
-func (this ActivityStreamsStartIndexProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "startIndex"
- } else {
- return "startIndex"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsStartIndexProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaNonNegativeInteger() {
- return nonnegativeinteger.SerializeNonNegativeInteger(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger
-// afterwards will return true.
-func (this *ActivityStreamsStartIndexProperty) Set(v int) {
- this.Clear()
- this.xmlschemaNonNegativeIntegerMember = v
- this.hasNonNegativeIntegerMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsStartIndexProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go
deleted file mode 100644
index 15b3168fe..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertystarttime
-
-import (
- "fmt"
- datetime "github.com/go-fed/activity/streams/values/dateTime"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
- "time"
-)
-
-// ActivityStreamsStartTimeProperty is the functional property "startTime". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsStartTimeProperty struct {
- xmlschemaDateTimeMember time.Time
- hasDateTimeMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeStartTimeProperty creates a "startTime" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeStartTimeProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsStartTimeProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "startTime"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "startTime")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsStartTimeProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := datetime.DeserializeDateTime(i); err == nil {
- this := &ActivityStreamsStartTimeProperty{
- alias: alias,
- hasDateTimeMember: true,
- xmlschemaDateTimeMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsStartTimeProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsStartTimeProperty creates a new startTime property.
-func NewActivityStreamsStartTimeProperty() *ActivityStreamsStartTimeProperty {
- return &ActivityStreamsStartTimeProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime
-// afterwards will return false.
-func (this *ActivityStreamsStartTimeProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasDateTimeMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaDateTime returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsStartTimeProperty) Get() time.Time {
- return this.xmlschemaDateTimeMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsStartTimeProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsStartTimeProperty) HasAny() bool {
- return this.IsXMLSchemaDateTime() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsStartTimeProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaDateTime returns true if this property is set and not an IRI.
-func (this ActivityStreamsStartTimeProperty) IsXMLSchemaDateTime() bool {
- return this.hasDateTimeMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsStartTimeProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsStartTimeProperty) KindIndex() int {
- if this.IsXMLSchemaDateTime() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsStartTimeProperty) LessThan(o vocab.ActivityStreamsStartTimeProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return datetime.LessDateTime(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "startTime".
-func (this ActivityStreamsStartTimeProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "startTime"
- } else {
- return "startTime"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsStartTimeProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaDateTime() {
- return datetime.SerializeDateTime(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards
-// will return true.
-func (this *ActivityStreamsStartTimeProperty) Set(v time.Time) {
- this.Clear()
- this.xmlschemaDateTimeMember = v
- this.hasDateTimeMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsStartTimeProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_pkg.go
deleted file mode 100644
index 1ddf6c14b..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_pkg.go
+++ /dev/null
@@ -1,35 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertystreams
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go
deleted file mode 100644
index 83597d0c3..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go
+++ /dev/null
@@ -1,938 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertystreams
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsStreamsPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsStreamsPropertyIterator struct {
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsStreamsProperty
-}
-
-// NewActivityStreamsStreamsPropertyIterator creates a new ActivityStreamsStreams
-// property.
-func NewActivityStreamsStreamsPropertyIterator() *ActivityStreamsStreamsPropertyIterator {
- return &ActivityStreamsStreamsPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsStreamsPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsStreamsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsStreamsPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsStreamsPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsStreamsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsStreamsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsStreamsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsStreamsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsStreamsPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsStreamsPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsStreamsPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsStreamsPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsStreamsPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.iri != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsStreamsPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsStreamsPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsStreamsPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsStreamsPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsOrderedCollection() {
- return 0
- }
- if this.IsActivityStreamsCollection() {
- return 1
- }
- if this.IsActivityStreamsCollectionPage() {
- return 2
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 3
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsStreamsPropertyIterator) LessThan(o vocab.ActivityStreamsStreamsPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsStreams".
-func (this ActivityStreamsStreamsPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsStreams"
- } else {
- return "ActivityStreamsStreams"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsStreamsPropertyIterator) Next() vocab.ActivityStreamsStreamsPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsStreamsPropertyIterator) Prev() vocab.ActivityStreamsStreamsPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsStreamsPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsStreamsPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsStreamsPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsStreams property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsStreamsPropertyIterator) clear() {
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsStreamsPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsStreamsProperty is the non-functional property "streams". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsStreamsProperty struct {
- properties []*ActivityStreamsStreamsPropertyIterator
- alias string
-}
-
-// DeserializeStreamsProperty creates a "streams" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeStreamsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsStreamsProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "streams"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "streams")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsStreamsProperty{
- alias: alias,
- properties: []*ActivityStreamsStreamsPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsStreamsPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsStreamsPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsStreamsProperty creates a new streams property.
-func NewActivityStreamsStreamsProperty() *ActivityStreamsStreamsProperty {
- return &ActivityStreamsStreamsProperty{alias: ""}
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "streams". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsStreamsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "streams". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsStreamsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "streams". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsStreamsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "streams". Invalidates
-// iterators that are traversing using Prev.
-func (this *ActivityStreamsStreamsProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsStreamsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "streams"
-func (this *ActivityStreamsStreamsProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsStreamsPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "streams". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsStreamsProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsStreamsPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsStreamsProperty) At(index int) vocab.ActivityStreamsStreamsPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsStreamsProperty) Begin() vocab.ActivityStreamsStreamsPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsStreamsProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsStreamsProperty) End() vocab.ActivityStreamsStreamsPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "streams". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsStreamsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "streams". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsStreamsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "streams". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsStreamsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "streams". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsStreamsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "streams".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsStreamsPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "streams". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsStreamsProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsStreamsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsStreamsProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsStreamsProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "streams" property.
-func (this ActivityStreamsStreamsProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsStreamsProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsStreamsProperty) LessThan(o vocab.ActivityStreamsStreamsProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("streams") with any alias.
-func (this ActivityStreamsStreamsProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "streams"
- } else {
- return "streams"
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "streams". Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsStreamsPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "streams". Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsStreamsPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "streams". Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsStreamsPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "streams". Invalidates all
-// iterators.
-func (this *ActivityStreamsStreamsProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsStreamsPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "streams".
-func (this *ActivityStreamsStreamsProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsStreamsPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "streams". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsStreamsProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsStreamsPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsStreamsPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "streams", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsStreamsPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsStreamsProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "streams". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsStreamsPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "streams". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsStreamsPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "streams". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsStreamsPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "streams". Panics if the index
-// is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsStreamsProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsStreamsPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "streams". Panics if the index is out of bounds.
-func (this *ActivityStreamsStreamsProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsStreamsPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "streams". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsStreamsProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsStreamsPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "streams" property.
-func (this ActivityStreamsStreamsProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_pkg.go
deleted file mode 100644
index 75cc38e21..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertysubject
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go
deleted file mode 100644
index 3d0e02e04..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go
+++ /dev/null
@@ -1,3024 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertysubject
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsSubjectProperty is the functional property "subject". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsSubjectProperty struct {
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeSubjectProperty creates a "subject" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsSubjectProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "subject"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "subject")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsSubjectProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsSubjectProperty{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsSubjectProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsSubjectProperty creates a new subject property.
-func NewActivityStreamsSubjectProperty() *ActivityStreamsSubjectProperty {
- return &ActivityStreamsSubjectProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsSubjectProperty) Clear() {
- this.activitystreamsLinkMember = nil
- this.activitystreamsObjectMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsSubjectProperty) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsSubjectProperty) GetType() vocab.Type {
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsSubjectProperty) HasAny() bool {
- return this.IsActivityStreamsLink() ||
- 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.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsSubjectProperty) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsSubjectProperty) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsSubjectProperty) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsSubjectProperty) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsSubjectProperty) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsSubjectProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsSubjectProperty) 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 ActivityStreamsSubjectProperty) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsSubjectProperty) KindIndex() int {
- if this.IsActivityStreamsLink() {
- return 0
- }
- if this.IsActivityStreamsObject() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubjectProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "subject".
-func (this ActivityStreamsSubjectProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "subject"
- } else {
- return "subject"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) {
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.Clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.Clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.Clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.Clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.Clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.Clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.Clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.Clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.Clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.Clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.Clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.Clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.Clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.Clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.Clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.Clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.Clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.Clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.Clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.Clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.Clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.Clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.Clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.Clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.Clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.Clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.Clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.Clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.Clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.Clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.Clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.Clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.Clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.Clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.Clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.Clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.Clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.Clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.Clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.Clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.Clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.Clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.Clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.Clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.Clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.Clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.Clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.Clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.Clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.Clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.Clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.Clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.Clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.Clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.Clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.Clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.Clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.Clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.Clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.Clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsSubjectProperty) SetTootEmoji(v vocab.TootEmoji) {
- this.Clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsSubjectProperty) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.Clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on subject property: %T", t)
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go
deleted file mode 100644
index 5acc2dfda..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go
+++ /dev/null
@@ -1,668 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertysummary
-
-import (
- "fmt"
- langstring "github.com/go-fed/activity/streams/values/langString"
- string1 "github.com/go-fed/activity/streams/values/string"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsSummaryPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsSummaryPropertyIterator struct {
- xmlschemaStringMember string
- hasStringMember bool
- rdfLangStringMember map[string]string
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsSummaryProperty
-}
-
-// NewActivityStreamsSummaryPropertyIterator creates a new ActivityStreamsSummary
-// property.
-func NewActivityStreamsSummaryPropertyIterator() *ActivityStreamsSummaryPropertyIterator {
- return &ActivityStreamsSummaryPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsSummaryPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsSummaryPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsSummaryPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsSummaryPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := string1.DeserializeString(i); err == nil {
- this := &ActivityStreamsSummaryPropertyIterator{
- alias: alias,
- hasStringMember: true,
- xmlschemaStringMember: v,
- }
- return this, nil
- } else if v, err := langstring.DeserializeLangString(i); err == nil {
- this := &ActivityStreamsSummaryPropertyIterator{
- alias: alias,
- rdfLangStringMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsSummaryPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsSummaryPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetLanguage returns the value for the specified BCP47 language code, or an
-// empty string if it is either not a language map or no value is present.
-func (this ActivityStreamsSummaryPropertyIterator) GetLanguage(bcp47 string) string {
- if this.rdfLangStringMember == nil {
- return ""
- } else if v, ok := this.rdfLangStringMember[bcp47]; ok {
- return v
- } else {
- return ""
- }
-}
-
-// GetRDFLangString returns the value of this property. When IsRDFLangString
-// returns false, GetRDFLangString will return an arbitrary value.
-func (this ActivityStreamsSummaryPropertyIterator) GetRDFLangString() map[string]string {
- return this.rdfLangStringMember
-}
-
-// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString
-// returns false, GetXMLSchemaString will return an arbitrary value.
-func (this ActivityStreamsSummaryPropertyIterator) GetXMLSchemaString() string {
- return this.xmlschemaStringMember
-}
-
-// HasAny returns true if any of the values are set, except for the natural
-// language map. When true, the specific has, getter, and setter methods may
-// be used to determine what kind of value there is to access and set this
-// property. To determine if the property was set as a natural language map,
-// use the IsRDFLangString method instead.
-func (this ActivityStreamsSummaryPropertyIterator) HasAny() bool {
- return this.IsXMLSchemaString() ||
- this.IsRDFLangString() ||
- this.iri != nil
-}
-
-// HasLanguage returns true if the natural language map has an entry for the
-// specified BCP47 language code.
-func (this ActivityStreamsSummaryPropertyIterator) HasLanguage(bcp47 string) bool {
- if this.rdfLangStringMember == nil {
- return false
- } else {
- _, ok := this.rdfLangStringMember[bcp47]
- return ok
- }
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsSummaryPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsRDFLangString returns true if this property has a type of "langString". When
-// true, use the GetRDFLangString and SetRDFLangString methods to access and
-// set this property.. To determine if the property was set as a natural
-// language map, use the IsRDFLangString method instead.
-func (this ActivityStreamsSummaryPropertyIterator) IsRDFLangString() bool {
- return this.rdfLangStringMember != nil
-}
-
-// IsXMLSchemaString returns true if this property has a type of "string". When
-// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access
-// and set this property.. To determine if the property was set as a natural
-// language map, use the IsRDFLangString method instead.
-func (this ActivityStreamsSummaryPropertyIterator) IsXMLSchemaString() bool {
- return this.hasStringMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsSummaryPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsSummaryPropertyIterator) KindIndex() int {
- if this.IsXMLSchemaString() {
- return 0
- }
- if this.IsRDFLangString() {
- return 1
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsSummaryPropertyIterator) LessThan(o vocab.ActivityStreamsSummaryPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsXMLSchemaString() {
- return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString())
- } else if this.IsRDFLangString() {
- return langstring.LessLangString(this.GetRDFLangString(), o.GetRDFLangString())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsSummary".
-func (this ActivityStreamsSummaryPropertyIterator) Name() string {
- if this.IsRDFLangString() {
- return "ActivityStreamsSummaryMap"
- } else {
- return "ActivityStreamsSummary"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsSummaryPropertyIterator) Next() vocab.ActivityStreamsSummaryPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsSummaryPropertyIterator) Prev() vocab.ActivityStreamsSummaryPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsSummaryPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetLanguage sets the value for the specified BCP47 language code.
-func (this *ActivityStreamsSummaryPropertyIterator) SetLanguage(bcp47, value string) {
- this.hasStringMember = false
- this.rdfLangStringMember = nil
- this.unknown = nil
- this.iri = nil
- if this.rdfLangStringMember == nil {
- this.rdfLangStringMember = make(map[string]string)
- }
- this.rdfLangStringMember[bcp47] = value
-}
-
-// SetRDFLangString sets the value of this property and clears the natural
-// language map. Calling IsRDFLangString afterwards will return true. Calling
-// IsRDFLangString afterwards returns false.
-func (this *ActivityStreamsSummaryPropertyIterator) SetRDFLangString(v map[string]string) {
- this.clear()
- this.rdfLangStringMember = v
-}
-
-// SetXMLSchemaString sets the value of this property and clears the natural
-// language map. Calling IsXMLSchemaString afterwards will return true.
-// Calling IsRDFLangString afterwards returns false.
-func (this *ActivityStreamsSummaryPropertyIterator) SetXMLSchemaString(v string) {
- this.clear()
- this.xmlschemaStringMember = v
- this.hasStringMember = true
-}
-
-// clear ensures no value and no language map for this property is set. Calling
-// HasAny or any of the 'Is' methods afterwards will return false.
-func (this *ActivityStreamsSummaryPropertyIterator) clear() {
- this.hasStringMember = false
- this.rdfLangStringMember = nil
- this.unknown = nil
- this.iri = nil
- this.rdfLangStringMember = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsSummaryPropertyIterator) serialize() (interface{}, error) {
- if this.IsXMLSchemaString() {
- return string1.SerializeString(this.GetXMLSchemaString())
- } else if this.IsRDFLangString() {
- return langstring.SerializeLangString(this.GetRDFLangString())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsSummaryProperty is the non-functional property "summary". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsSummaryProperty struct {
- properties []*ActivityStreamsSummaryPropertyIterator
- alias string
-}
-
-// DeserializeSummaryProperty creates a "summary" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeSummaryProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSummaryProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "summary"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "summary")
- }
- i, ok := m[propName]
- if !ok {
- // Attempt to find the map instead.
- i, ok = m[propName+"Map"]
- }
- if ok {
- this := &ActivityStreamsSummaryProperty{
- alias: alias,
- properties: []*ActivityStreamsSummaryPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsSummaryPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsSummaryPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsSummaryProperty creates a new summary property.
-func NewActivityStreamsSummaryProperty() *ActivityStreamsSummaryProperty {
- return &ActivityStreamsSummaryProperty{alias: ""}
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "summary"
-func (this *ActivityStreamsSummaryProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsSummaryPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendRDFLangString appends a langString value to the back of a list of the
-// property "summary". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsSummaryProperty) AppendRDFLangString(v map[string]string) {
- this.properties = append(this.properties, &ActivityStreamsSummaryPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- rdfLangStringMember: v,
- })
-}
-
-// AppendXMLSchemaString appends a string value to the back of a list of the
-// property "summary". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsSummaryProperty) AppendXMLSchemaString(v string) {
- this.properties = append(this.properties, &ActivityStreamsSummaryPropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: this.Len(),
- parent: this,
- xmlschemaStringMember: v,
- })
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsSummaryProperty) At(index int) vocab.ActivityStreamsSummaryPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsSummaryProperty) Begin() vocab.ActivityStreamsSummaryPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsSummaryProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsSummaryProperty) End() vocab.ActivityStreamsSummaryPropertyIterator {
- return nil
-}
-
-// Insert inserts an IRI value at the specified index for a property "summary".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsSummaryProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsSummaryPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertRDFLangString inserts a langString value at the specified index for a
-// property "summary". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsSummaryProperty) InsertRDFLangString(idx int, v map[string]string) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsSummaryPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- rdfLangStringMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertXMLSchemaString inserts a string value at the specified index for a
-// property "summary". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsSummaryProperty) InsertXMLSchemaString(idx int, v string) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsSummaryPropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaStringMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsSummaryProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsSummaryProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "summary" property.
-func (this ActivityStreamsSummaryProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsSummaryProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetXMLSchemaString()
- rhs := this.properties[j].GetXMLSchemaString()
- return string1.LessString(lhs, rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetRDFLangString()
- rhs := this.properties[j].GetRDFLangString()
- return langstring.LessLangString(lhs, rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsSummaryProperty) LessThan(o vocab.ActivityStreamsSummaryProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("summary") with any alias.
-func (this ActivityStreamsSummaryProperty) Name() string {
- if this.Len() == 1 && this.At(0).IsRDFLangString() {
- return "summaryMap"
- } else {
- return "summary"
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "summary".
-func (this *ActivityStreamsSummaryProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsSummaryPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependRDFLangString prepends a langString value to the front of a list of the
-// property "summary". Invalidates all iterators.
-func (this *ActivityStreamsSummaryProperty) PrependRDFLangString(v map[string]string) {
- this.properties = append([]*ActivityStreamsSummaryPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- rdfLangStringMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependXMLSchemaString prepends a string value to the front of a list of the
-// property "summary". Invalidates all iterators.
-func (this *ActivityStreamsSummaryProperty) PrependXMLSchemaString(v string) {
- this.properties = append([]*ActivityStreamsSummaryPropertyIterator{{
- alias: this.alias,
- hasStringMember: true,
- myIdx: 0,
- parent: this,
- xmlschemaStringMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "summary", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsSummaryProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsSummaryPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsSummaryProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "summary". Panics if the index is out of bounds.
-func (this *ActivityStreamsSummaryProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsSummaryPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetRDFLangString sets a langString value to be at the specified index for the
-// property "summary". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsSummaryProperty) SetRDFLangString(idx int, v map[string]string) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsSummaryPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- rdfLangStringMember: v,
- }
-}
-
-// SetXMLSchemaString sets a string value to be at the specified index for the
-// property "summary". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsSummaryProperty) SetXMLSchemaString(idx int, v string) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsSummaryPropertyIterator{
- alias: this.alias,
- hasStringMember: true,
- myIdx: idx,
- parent: this,
- xmlschemaStringMember: v,
- }
-}
-
-// Swap swaps the location of values at two indices for the "summary" property.
-func (this ActivityStreamsSummaryProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_pkg.go
deleted file mode 100644
index 1407af2c0..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertytag
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go
deleted file mode 100644
index 2d1472f91..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go
+++ /dev/null
@@ -1,7028 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertytag
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsTagPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsTagPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsTagProperty
-}
-
-// NewActivityStreamsTagPropertyIterator creates a new ActivityStreamsTag property.
-func NewActivityStreamsTagPropertyIterator() *ActivityStreamsTagPropertyIterator {
- return &ActivityStreamsTagPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsTagPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsTagPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsTagPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTagPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsTagPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsTagPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsTagPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsTagPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsTagPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsTagPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsTagPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsTagPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsTagPropertyIterator) 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 ActivityStreamsTagPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsTagPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsTagPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsTag".
-func (this ActivityStreamsTagPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsTag"
- } else {
- return "ActivityStreamsTag"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsTagPropertyIterator) Next() vocab.ActivityStreamsTagPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsTagPropertyIterator) Prev() vocab.ActivityStreamsTagPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsTagPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsTag property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsTagPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsTagProperty is the non-functional property "tag". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsTagProperty struct {
- properties []*ActivityStreamsTagPropertyIterator
- alias string
-}
-
-// DeserializeTagProperty creates a "tag" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeTagProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTagProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "tag"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "tag")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsTagProperty{
- alias: alias,
- properties: []*ActivityStreamsTagPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsTagPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsTagPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsTagProperty creates a new tag property.
-func NewActivityStreamsTagProperty() *ActivityStreamsTagProperty {
- return &ActivityStreamsTagProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "tag". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "tag". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "tag". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "tag". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "tag". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "tag". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "tag". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "tag". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "tag". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "tag". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "tag". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsTagProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "tag"
-func (this *ActivityStreamsTagProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "tag". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTagProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "tag". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsTagProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsTagProperty) At(index int) vocab.ActivityStreamsTagPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsTagProperty) Begin() vocab.ActivityStreamsTagPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsTagProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsTagProperty) End() vocab.ActivityStreamsTagPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "tag". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "tag". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "tag". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "tag". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "tag". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "tag". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "tag". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "tag". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "tag". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "tag". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "tag". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "tag". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "tag". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "tag". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "tag". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "tag". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "tag". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "tag". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "tag". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "tag". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "tag". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "tag". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "tag". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "tag". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "tag".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "tag". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "tag". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "tag". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsTagProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsTagProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsTagProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "tag" property.
-func (this ActivityStreamsTagProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsTagProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsTagProperty) LessThan(o vocab.ActivityStreamsTagProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("tag") with any alias.
-func (this ActivityStreamsTagProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "tag"
- } else {
- return "tag"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "tag". Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "tag". Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "tag".
-func (this *ActivityStreamsTagProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "tag". Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsTagPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "tag". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsTagProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsTagPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "tag", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsTagPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsTagProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "tag". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "tag". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "tag". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "tag". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "tag". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "tag". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "tag". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "tag". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "tag". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "tag". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "tag". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "tag". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "tag". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "tag". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "tag". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "tag". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "tag". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTagProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "tag". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "tag".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsTagProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "tag". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsTagProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "tag". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTagProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "tag". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsTagProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsTagPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "tag" property.
-func (this ActivityStreamsTagProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_pkg.go
deleted file mode 100644
index e2404b595..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertytarget
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go
deleted file mode 100644
index f5d293a8d..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go
+++ /dev/null
@@ -1,7031 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertytarget
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsTargetPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsTargetPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsTargetProperty
-}
-
-// NewActivityStreamsTargetPropertyIterator creates a new ActivityStreamsTarget
-// property.
-func NewActivityStreamsTargetPropertyIterator() *ActivityStreamsTargetPropertyIterator {
- return &ActivityStreamsTargetPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsTargetPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsTargetPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsTargetPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsTargetPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsTargetPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsTargetPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsTargetPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsTargetPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsTargetPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsTargetPropertyIterator) 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 ActivityStreamsTargetPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsTargetPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStreamsTargetPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsTarget".
-func (this ActivityStreamsTargetPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsTarget"
- } else {
- return "ActivityStreamsTarget"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsTargetPropertyIterator) Next() vocab.ActivityStreamsTargetPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsTargetPropertyIterator) Prev() vocab.ActivityStreamsTargetPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsTargetPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsTarget property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsTargetPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsTargetProperty is the non-functional property "target". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsTargetProperty struct {
- properties []*ActivityStreamsTargetPropertyIterator
- alias string
-}
-
-// DeserializeTargetProperty creates a "target" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeTargetProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsTargetProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "target"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "target")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsTargetProperty{
- alias: alias,
- properties: []*ActivityStreamsTargetPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsTargetPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsTargetPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsTargetProperty creates a new target property.
-func NewActivityStreamsTargetProperty() *ActivityStreamsTargetProperty {
- return &ActivityStreamsTargetProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "target". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "target". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "target". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "target". Invalidates iterators that
-// are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "target". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "target". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "target". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "target". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "target". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "target". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "target". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "target". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsTargetProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "target"
-func (this *ActivityStreamsTargetProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "target". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsTargetProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "target". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsTargetProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsTargetProperty) At(index int) vocab.ActivityStreamsTargetPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsTargetProperty) Begin() vocab.ActivityStreamsTargetPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsTargetProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsTargetProperty) End() vocab.ActivityStreamsTargetPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "target". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "target". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "target". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "target". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "target". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "target". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "target". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "target". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "target". Existing elements at
-// that index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "target". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "target". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "target". Existing elements at that index and higher
-// are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "target". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "target". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "target". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "target". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "target". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "target". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "target".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "target". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "target". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "target". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsTargetProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsTargetProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsTargetProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "target" property.
-func (this ActivityStreamsTargetProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsTargetProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsTargetProperty) LessThan(o vocab.ActivityStreamsTargetProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("target") with any alias.
-func (this ActivityStreamsTargetProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "target"
- } else {
- return "target"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "target". Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "target". Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property
-// "target".
-func (this *ActivityStreamsTargetProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "target". Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "target". Invalidates all iterators. Returns an error if the type
-// is not a valid one to set for this property.
-func (this *ActivityStreamsTargetProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsTargetPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "target", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsTargetPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsTargetProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "target". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "target". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "target". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "target". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "target". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "target". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "target". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "target". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "target". Panics if the index is
-// out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "target". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "target". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "target". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "target". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "target". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "target". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "target". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "target". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsTargetProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "target". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsTargetProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "target". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property
-// "target". Panics if the index is out of bounds.
-func (this *ActivityStreamsTargetProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "target". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "target". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsTargetProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "target". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsTargetProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsTargetPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "target" property.
-func (this ActivityStreamsTargetProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_pkg.go
deleted file mode 100644
index c4f9f3b3b..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_pkg.go
+++ /dev/null
@@ -1,265 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyto
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAcceptActivityStreams returns the deserialization method for
- // the "ActivityStreamsAccept" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
- // DeserializeActivityActivityStreams returns the deserialization method
- // for the "ActivityStreamsActivity" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
- // DeserializeAddActivityStreams returns the deserialization method for
- // the "ActivityStreamsAdd" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
- // DeserializeAnnounceActivityStreams returns the deserialization method
- // for the "ActivityStreamsAnnounce" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
- // DeserializeApplicationActivityStreams returns the deserialization
- // method for the "ActivityStreamsApplication" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
- // DeserializeArriveActivityStreams returns the deserialization method for
- // the "ActivityStreamsArrive" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
- // DeserializeArticleActivityStreams returns the deserialization method
- // for the "ActivityStreamsArticle" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
- // DeserializeAudioActivityStreams returns the deserialization method for
- // the "ActivityStreamsAudio" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
- // DeserializeBlockActivityStreams returns the deserialization method for
- // the "ActivityStreamsBlock" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
- // DeserializeBranchForgeFed returns the deserialization method for the
- // "ForgeFedBranch" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
- // DeserializeCollectionActivityStreams returns the deserialization method
- // for the "ActivityStreamsCollection" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
- // DeserializeCollectionPageActivityStreams returns the deserialization
- // method for the "ActivityStreamsCollectionPage" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
- // DeserializeCommitForgeFed returns the deserialization method for the
- // "ForgeFedCommit" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
- // DeserializeCreateActivityStreams returns the deserialization method for
- // the "ActivityStreamsCreate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
- // DeserializeDeleteActivityStreams returns the deserialization method for
- // the "ActivityStreamsDelete" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
- // DeserializeDislikeActivityStreams returns the deserialization method
- // for the "ActivityStreamsDislike" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
- // DeserializeDocumentActivityStreams returns the deserialization method
- // for the "ActivityStreamsDocument" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
- // DeserializeEmojiToot returns the deserialization method for the
- // "TootEmoji" non-functional property in the vocabulary "Toot"
- DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
- // DeserializeEventActivityStreams returns the deserialization method for
- // the "ActivityStreamsEvent" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
- // DeserializeFlagActivityStreams returns the deserialization method for
- // the "ActivityStreamsFlag" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
- // DeserializeFollowActivityStreams returns the deserialization method for
- // the "ActivityStreamsFollow" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
- // DeserializeGroupActivityStreams returns the deserialization method for
- // the "ActivityStreamsGroup" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
- // DeserializeIdentityProofToot returns the deserialization method for the
- // "TootIdentityProof" non-functional property in the vocabulary "Toot"
- DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
- // DeserializeIgnoreActivityStreams returns the deserialization method for
- // the "ActivityStreamsIgnore" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
- // DeserializeImageActivityStreams returns the deserialization method for
- // the "ActivityStreamsImage" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
- // DeserializeIntransitiveActivityActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsIntransitiveActivity" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
- // DeserializeInviteActivityStreams returns the deserialization method for
- // the "ActivityStreamsInvite" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
- // DeserializeJoinActivityStreams returns the deserialization method for
- // the "ActivityStreamsJoin" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
- // DeserializeLeaveActivityStreams returns the deserialization method for
- // the "ActivityStreamsLeave" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
- // DeserializeLikeActivityStreams returns the deserialization method for
- // the "ActivityStreamsLike" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeListenActivityStreams returns the deserialization method for
- // the "ActivityStreamsListen" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
- // DeserializeMoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsMove" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
- // DeserializeNoteActivityStreams returns the deserialization method for
- // the "ActivityStreamsNote" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
- // DeserializeObjectActivityStreams returns the deserialization method for
- // the "ActivityStreamsObject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
- // DeserializeOfferActivityStreams returns the deserialization method for
- // the "ActivityStreamsOffer" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
- // DeserializeOrderedCollectionActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrderedCollection" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
- // DeserializeOrderedCollectionPageActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsOrderedCollectionPage" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
- // DeserializeOrganizationActivityStreams returns the deserialization
- // method for the "ActivityStreamsOrganization" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
- // DeserializePageActivityStreams returns the deserialization method for
- // the "ActivityStreamsPage" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
- // DeserializePersonActivityStreams returns the deserialization method for
- // the "ActivityStreamsPerson" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
- // DeserializePlaceActivityStreams returns the deserialization method for
- // the "ActivityStreamsPlace" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
- // DeserializeProfileActivityStreams returns the deserialization method
- // for the "ActivityStreamsProfile" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
- // DeserializePushForgeFed returns the deserialization method for the
- // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
- DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
- // DeserializeQuestionActivityStreams returns the deserialization method
- // for the "ActivityStreamsQuestion" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
- // DeserializeReadActivityStreams returns the deserialization method for
- // the "ActivityStreamsRead" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
- // DeserializeRejectActivityStreams returns the deserialization method for
- // the "ActivityStreamsReject" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
- // DeserializeRelationshipActivityStreams returns the deserialization
- // method for the "ActivityStreamsRelationship" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
- // DeserializeRemoveActivityStreams returns the deserialization method for
- // the "ActivityStreamsRemove" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
- // DeserializeRepositoryForgeFed returns the deserialization method for
- // the "ForgeFedRepository" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
- // DeserializeServiceActivityStreams returns the deserialization method
- // for the "ActivityStreamsService" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
- // DeserializeTentativeAcceptActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeAccept" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
- // DeserializeTentativeRejectActivityStreams returns the deserialization
- // method for the "ActivityStreamsTentativeReject" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
- // DeserializeTicketDependencyForgeFed returns the deserialization method
- // for the "ForgeFedTicketDependency" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
- // DeserializeTicketForgeFed returns the deserialization method for the
- // "ForgeFedTicket" non-functional property in the vocabulary
- // "ForgeFed"
- DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
- // DeserializeTombstoneActivityStreams returns the deserialization method
- // for the "ActivityStreamsTombstone" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
- // DeserializeTravelActivityStreams returns the deserialization method for
- // the "ActivityStreamsTravel" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
- // DeserializeUndoActivityStreams returns the deserialization method for
- // the "ActivityStreamsUndo" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
- // DeserializeUpdateActivityStreams returns the deserialization method for
- // the "ActivityStreamsUpdate" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
- // DeserializeVideoActivityStreams returns the deserialization method for
- // the "ActivityStreamsVideo" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
- // DeserializeViewActivityStreams returns the deserialization method for
- // the "ActivityStreamsView" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go
deleted file mode 100644
index b5082a484..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go
+++ /dev/null
@@ -1,7028 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyto
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsToPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsToPropertyIterator struct {
- activitystreamsObjectMember vocab.ActivityStreamsObject
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsAcceptMember vocab.ActivityStreamsAccept
- activitystreamsActivityMember vocab.ActivityStreamsActivity
- activitystreamsAddMember vocab.ActivityStreamsAdd
- activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
- activitystreamsApplicationMember vocab.ActivityStreamsApplication
- activitystreamsArriveMember vocab.ActivityStreamsArrive
- activitystreamsArticleMember vocab.ActivityStreamsArticle
- activitystreamsAudioMember vocab.ActivityStreamsAudio
- activitystreamsBlockMember vocab.ActivityStreamsBlock
- forgefedBranchMember vocab.ForgeFedBranch
- activitystreamsCollectionMember vocab.ActivityStreamsCollection
- activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
- forgefedCommitMember vocab.ForgeFedCommit
- activitystreamsCreateMember vocab.ActivityStreamsCreate
- activitystreamsDeleteMember vocab.ActivityStreamsDelete
- activitystreamsDislikeMember vocab.ActivityStreamsDislike
- activitystreamsDocumentMember vocab.ActivityStreamsDocument
- tootEmojiMember vocab.TootEmoji
- activitystreamsEventMember vocab.ActivityStreamsEvent
- activitystreamsFlagMember vocab.ActivityStreamsFlag
- activitystreamsFollowMember vocab.ActivityStreamsFollow
- activitystreamsGroupMember vocab.ActivityStreamsGroup
- tootIdentityProofMember vocab.TootIdentityProof
- activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
- activitystreamsImageMember vocab.ActivityStreamsImage
- activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
- activitystreamsInviteMember vocab.ActivityStreamsInvite
- activitystreamsJoinMember vocab.ActivityStreamsJoin
- activitystreamsLeaveMember vocab.ActivityStreamsLeave
- activitystreamsLikeMember vocab.ActivityStreamsLike
- activitystreamsListenMember vocab.ActivityStreamsListen
- activitystreamsMentionMember vocab.ActivityStreamsMention
- activitystreamsMoveMember vocab.ActivityStreamsMove
- activitystreamsNoteMember vocab.ActivityStreamsNote
- activitystreamsOfferMember vocab.ActivityStreamsOffer
- activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
- activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
- activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
- activitystreamsPageMember vocab.ActivityStreamsPage
- activitystreamsPersonMember vocab.ActivityStreamsPerson
- activitystreamsPlaceMember vocab.ActivityStreamsPlace
- activitystreamsProfileMember vocab.ActivityStreamsProfile
- forgefedPushMember vocab.ForgeFedPush
- activitystreamsQuestionMember vocab.ActivityStreamsQuestion
- activitystreamsReadMember vocab.ActivityStreamsRead
- activitystreamsRejectMember vocab.ActivityStreamsReject
- activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
- activitystreamsRemoveMember vocab.ActivityStreamsRemove
- forgefedRepositoryMember vocab.ForgeFedRepository
- activitystreamsServiceMember vocab.ActivityStreamsService
- activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
- activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
- forgefedTicketMember vocab.ForgeFedTicket
- forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
- activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
- activitystreamsTravelMember vocab.ActivityStreamsTravel
- activitystreamsUndoMember vocab.ActivityStreamsUndo
- activitystreamsUpdateMember vocab.ActivityStreamsUpdate
- activitystreamsVideoMember vocab.ActivityStreamsVideo
- activitystreamsViewMember vocab.ActivityStreamsView
- unknown interface{}
- iri *url.URL
- alias string
- myIdx int
- parent vocab.ActivityStreamsToProperty
-}
-
-// NewActivityStreamsToPropertyIterator creates a new ActivityStreamsTo property.
-func NewActivityStreamsToPropertyIterator() *ActivityStreamsToPropertyIterator {
- return &ActivityStreamsToPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsToPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsToPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsToPropertyIterator{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsAddMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- alias: alias,
- forgefedBranchMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- alias: alias,
- forgefedCommitMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- alias: alias,
- tootEmojiMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsEventMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- alias: alias,
- tootIdentityProofMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsImageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsListenMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsPageMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- alias: alias,
- forgefedPushMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsReadMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- alias: alias,
- forgefedRepositoryMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- alias: alias,
- forgefedTicketMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- alias: alias,
- forgefedTicketDependencyMember: v,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsToPropertyIterator{
- activitystreamsViewMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- this := &ActivityStreamsToPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsAccept returns the value of this property. When
-// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
- return this.activitystreamsAcceptMember
-}
-
-// GetActivityStreamsActivity returns the value of this property. When
-// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
- return this.activitystreamsActivityMember
-}
-
-// GetActivityStreamsAdd returns the value of this property. When
-// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
- return this.activitystreamsAddMember
-}
-
-// GetActivityStreamsAnnounce returns the value of this property. When
-// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
- return this.activitystreamsAnnounceMember
-}
-
-// GetActivityStreamsApplication returns the value of this property. When
-// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
-// will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
- return this.activitystreamsApplicationMember
-}
-
-// GetActivityStreamsArrive returns the value of this property. When
-// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
- return this.activitystreamsArriveMember
-}
-
-// GetActivityStreamsArticle returns the value of this property. When
-// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
- return this.activitystreamsArticleMember
-}
-
-// GetActivityStreamsAudio returns the value of this property. When
-// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
- return this.activitystreamsAudioMember
-}
-
-// GetActivityStreamsBlock returns the value of this property. When
-// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
- return this.activitystreamsBlockMember
-}
-
-// GetActivityStreamsCollection returns the value of this property. When
-// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
-// will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
- return this.activitystreamsCollectionMember
-}
-
-// GetActivityStreamsCollectionPage returns the value of this property. When
-// IsActivityStreamsCollectionPage returns false,
-// GetActivityStreamsCollectionPage will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
- return this.activitystreamsCollectionPageMember
-}
-
-// GetActivityStreamsCreate returns the value of this property. When
-// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
- return this.activitystreamsCreateMember
-}
-
-// GetActivityStreamsDelete returns the value of this property. When
-// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
- return this.activitystreamsDeleteMember
-}
-
-// GetActivityStreamsDislike returns the value of this property. When
-// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
- return this.activitystreamsDislikeMember
-}
-
-// GetActivityStreamsDocument returns the value of this property. When
-// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
- return this.activitystreamsDocumentMember
-}
-
-// GetActivityStreamsEvent returns the value of this property. When
-// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
- return this.activitystreamsEventMember
-}
-
-// GetActivityStreamsFlag returns the value of this property. When
-// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
- return this.activitystreamsFlagMember
-}
-
-// GetActivityStreamsFollow returns the value of this property. When
-// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
- return this.activitystreamsFollowMember
-}
-
-// GetActivityStreamsGroup returns the value of this property. When
-// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
- return this.activitystreamsGroupMember
-}
-
-// GetActivityStreamsIgnore returns the value of this property. When
-// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
- return this.activitystreamsIgnoreMember
-}
-
-// GetActivityStreamsImage returns the value of this property. When
-// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsImage() vocab.ActivityStreamsImage {
- return this.activitystreamsImageMember
-}
-
-// GetActivityStreamsIntransitiveActivity returns the value of this property. When
-// IsActivityStreamsIntransitiveActivity returns false,
-// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
- return this.activitystreamsIntransitiveActivityMember
-}
-
-// GetActivityStreamsInvite returns the value of this property. When
-// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
- return this.activitystreamsInviteMember
-}
-
-// GetActivityStreamsJoin returns the value of this property. When
-// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
- return this.activitystreamsJoinMember
-}
-
-// GetActivityStreamsLeave returns the value of this property. When
-// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
- return this.activitystreamsLeaveMember
-}
-
-// GetActivityStreamsLike returns the value of this property. When
-// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsLike() vocab.ActivityStreamsLike {
- return this.activitystreamsLikeMember
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsListen returns the value of this property. When
-// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsListen() vocab.ActivityStreamsListen {
- return this.activitystreamsListenMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetActivityStreamsMove returns the value of this property. When
-// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsMove() vocab.ActivityStreamsMove {
- return this.activitystreamsMoveMember
-}
-
-// GetActivityStreamsNote returns the value of this property. When
-// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsNote() vocab.ActivityStreamsNote {
- return this.activitystreamsNoteMember
-}
-
-// GetActivityStreamsObject returns the value of this property. When
-// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsObject() vocab.ActivityStreamsObject {
- return this.activitystreamsObjectMember
-}
-
-// GetActivityStreamsOffer returns the value of this property. When
-// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
- return this.activitystreamsOfferMember
-}
-
-// GetActivityStreamsOrderedCollection returns the value of this property. When
-// IsActivityStreamsOrderedCollection returns false,
-// GetActivityStreamsOrderedCollection will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
- return this.activitystreamsOrderedCollectionMember
-}
-
-// GetActivityStreamsOrderedCollectionPage returns the value of this property.
-// When IsActivityStreamsOrderedCollectionPage returns false,
-// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
- return this.activitystreamsOrderedCollectionPageMember
-}
-
-// GetActivityStreamsOrganization returns the value of this property. When
-// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
-// will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
- return this.activitystreamsOrganizationMember
-}
-
-// GetActivityStreamsPage returns the value of this property. When
-// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsPage() vocab.ActivityStreamsPage {
- return this.activitystreamsPageMember
-}
-
-// GetActivityStreamsPerson returns the value of this property. When
-// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
- return this.activitystreamsPersonMember
-}
-
-// GetActivityStreamsPlace returns the value of this property. When
-// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
- return this.activitystreamsPlaceMember
-}
-
-// GetActivityStreamsProfile returns the value of this property. When
-// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
- return this.activitystreamsProfileMember
-}
-
-// GetActivityStreamsQuestion returns the value of this property. When
-// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
- return this.activitystreamsQuestionMember
-}
-
-// GetActivityStreamsRead returns the value of this property. When
-// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsRead() vocab.ActivityStreamsRead {
- return this.activitystreamsReadMember
-}
-
-// GetActivityStreamsReject returns the value of this property. When
-// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsReject() vocab.ActivityStreamsReject {
- return this.activitystreamsRejectMember
-}
-
-// GetActivityStreamsRelationship returns the value of this property. When
-// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
-// will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
- return this.activitystreamsRelationshipMember
-}
-
-// GetActivityStreamsRemove returns the value of this property. When
-// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
- return this.activitystreamsRemoveMember
-}
-
-// GetActivityStreamsService returns the value of this property. When
-// IsActivityStreamsService returns false, GetActivityStreamsService will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsService() vocab.ActivityStreamsService {
- return this.activitystreamsServiceMember
-}
-
-// GetActivityStreamsTentativeAccept returns the value of this property. When
-// IsActivityStreamsTentativeAccept returns false,
-// GetActivityStreamsTentativeAccept will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
- return this.activitystreamsTentativeAcceptMember
-}
-
-// GetActivityStreamsTentativeReject returns the value of this property. When
-// IsActivityStreamsTentativeReject returns false,
-// GetActivityStreamsTentativeReject will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
- return this.activitystreamsTentativeRejectMember
-}
-
-// GetActivityStreamsTombstone returns the value of this property. When
-// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
- return this.activitystreamsTombstoneMember
-}
-
-// GetActivityStreamsTravel returns the value of this property. When
-// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
- return this.activitystreamsTravelMember
-}
-
-// GetActivityStreamsUndo returns the value of this property. When
-// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
- return this.activitystreamsUndoMember
-}
-
-// GetActivityStreamsUpdate returns the value of this property. When
-// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
- return this.activitystreamsUpdateMember
-}
-
-// GetActivityStreamsVideo returns the value of this property. When
-// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
-// an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
- return this.activitystreamsVideoMember
-}
-
-// GetActivityStreamsView returns the value of this property. When
-// IsActivityStreamsView returns false, GetActivityStreamsView will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetActivityStreamsView() vocab.ActivityStreamsView {
- return this.activitystreamsViewMember
-}
-
-// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
-// returns false, GetForgeFedBranch will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetForgeFedBranch() vocab.ForgeFedBranch {
- return this.forgefedBranchMember
-}
-
-// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
-// returns false, GetForgeFedCommit will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetForgeFedCommit() vocab.ForgeFedCommit {
- return this.forgefedCommitMember
-}
-
-// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
-// false, GetForgeFedPush will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetForgeFedPush() vocab.ForgeFedPush {
- return this.forgefedPushMember
-}
-
-// GetForgeFedRepository returns the value of this property. When
-// IsForgeFedRepository returns false, GetForgeFedRepository will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetForgeFedRepository() vocab.ForgeFedRepository {
- return this.forgefedRepositoryMember
-}
-
-// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
-// returns false, GetForgeFedTicket will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetForgeFedTicket() vocab.ForgeFedTicket {
- return this.forgefedTicketMember
-}
-
-// GetForgeFedTicketDependency returns the value of this property. When
-// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
- return this.forgefedTicketDependencyMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetIRI() *url.URL {
- return this.iri
-}
-
-// GetTootEmoji returns the value of this property. When IsTootEmoji returns
-// false, GetTootEmoji will return an arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetTootEmoji() vocab.TootEmoji {
- return this.tootEmojiMember
-}
-
-// GetTootIdentityProof returns the value of this property. When
-// IsTootIdentityProof returns false, GetTootIdentityProof will return an
-// arbitrary value.
-func (this ActivityStreamsToPropertyIterator) GetTootIdentityProof() vocab.TootIdentityProof {
- return this.tootIdentityProofMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject()
- }
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept()
- }
- if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity()
- }
- if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd()
- }
- if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce()
- }
- if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication()
- }
- if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive()
- }
- if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle()
- }
- if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio()
- }
- if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock()
- }
- if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch()
- }
- if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection()
- }
- if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage()
- }
- if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit()
- }
- if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate()
- }
- if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete()
- }
- if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike()
- }
- if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument()
- }
- if this.IsTootEmoji() {
- return this.GetTootEmoji()
- }
- if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent()
- }
- if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag()
- }
- if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow()
- }
- if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup()
- }
- if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof()
- }
- if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore()
- }
- if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage()
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity()
- }
- if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite()
- }
- if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin()
- }
- if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave()
- }
- if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike()
- }
- if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
- if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove()
- }
- if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote()
- }
- if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer()
- }
- if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection()
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage()
- }
- if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization()
- }
- if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage()
- }
- if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson()
- }
- if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace()
- }
- if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile()
- }
- if this.IsForgeFedPush() {
- return this.GetForgeFedPush()
- }
- if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion()
- }
- if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead()
- }
- if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject()
- }
- if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship()
- }
- if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove()
- }
- if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository()
- }
- if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService()
- }
- if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept()
- }
- if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject()
- }
- if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket()
- }
- if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency()
- }
- if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone()
- }
- if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel()
- }
- if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo()
- }
- if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate()
- }
- if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo()
- }
- if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView()
- }
-
- return nil
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsToPropertyIterator) HasAny() bool {
- return this.IsActivityStreamsObject() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsAccept() ||
- this.IsActivityStreamsActivity() ||
- this.IsActivityStreamsAdd() ||
- this.IsActivityStreamsAnnounce() ||
- this.IsActivityStreamsApplication() ||
- this.IsActivityStreamsArrive() ||
- this.IsActivityStreamsArticle() ||
- this.IsActivityStreamsAudio() ||
- this.IsActivityStreamsBlock() ||
- this.IsForgeFedBranch() ||
- this.IsActivityStreamsCollection() ||
- this.IsActivityStreamsCollectionPage() ||
- this.IsForgeFedCommit() ||
- this.IsActivityStreamsCreate() ||
- this.IsActivityStreamsDelete() ||
- this.IsActivityStreamsDislike() ||
- this.IsActivityStreamsDocument() ||
- this.IsTootEmoji() ||
- this.IsActivityStreamsEvent() ||
- this.IsActivityStreamsFlag() ||
- this.IsActivityStreamsFollow() ||
- this.IsActivityStreamsGroup() ||
- this.IsTootIdentityProof() ||
- this.IsActivityStreamsIgnore() ||
- this.IsActivityStreamsImage() ||
- this.IsActivityStreamsIntransitiveActivity() ||
- this.IsActivityStreamsInvite() ||
- this.IsActivityStreamsJoin() ||
- this.IsActivityStreamsLeave() ||
- this.IsActivityStreamsLike() ||
- this.IsActivityStreamsListen() ||
- this.IsActivityStreamsMention() ||
- this.IsActivityStreamsMove() ||
- this.IsActivityStreamsNote() ||
- this.IsActivityStreamsOffer() ||
- this.IsActivityStreamsOrderedCollection() ||
- this.IsActivityStreamsOrderedCollectionPage() ||
- this.IsActivityStreamsOrganization() ||
- this.IsActivityStreamsPage() ||
- this.IsActivityStreamsPerson() ||
- this.IsActivityStreamsPlace() ||
- this.IsActivityStreamsProfile() ||
- this.IsForgeFedPush() ||
- this.IsActivityStreamsQuestion() ||
- this.IsActivityStreamsRead() ||
- this.IsActivityStreamsReject() ||
- this.IsActivityStreamsRelationship() ||
- this.IsActivityStreamsRemove() ||
- this.IsForgeFedRepository() ||
- this.IsActivityStreamsService() ||
- this.IsActivityStreamsTentativeAccept() ||
- this.IsActivityStreamsTentativeReject() ||
- this.IsForgeFedTicket() ||
- this.IsForgeFedTicketDependency() ||
- this.IsActivityStreamsTombstone() ||
- this.IsActivityStreamsTravel() ||
- this.IsActivityStreamsUndo() ||
- this.IsActivityStreamsUpdate() ||
- this.IsActivityStreamsVideo() ||
- this.IsActivityStreamsView() ||
- this.iri != nil
-}
-
-// IsActivityStreamsAccept returns true if this property has a type of "Accept".
-// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsAccept() bool {
- return this.activitystreamsAcceptMember != nil
-}
-
-// IsActivityStreamsActivity returns true if this property has a type of
-// "Activity". When true, use the GetActivityStreamsActivity and
-// SetActivityStreamsActivity methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsActivity() bool {
- return this.activitystreamsActivityMember != nil
-}
-
-// IsActivityStreamsAdd returns true if this property has a type of "Add". When
-// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsAdd() bool {
- return this.activitystreamsAddMember != nil
-}
-
-// IsActivityStreamsAnnounce returns true if this property has a type of
-// "Announce". When true, use the GetActivityStreamsAnnounce and
-// SetActivityStreamsAnnounce methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsAnnounce() bool {
- return this.activitystreamsAnnounceMember != nil
-}
-
-// IsActivityStreamsApplication returns true if this property has a type of
-// "Application". When true, use the GetActivityStreamsApplication and
-// SetActivityStreamsApplication methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsApplication() bool {
- return this.activitystreamsApplicationMember != nil
-}
-
-// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
-// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsArrive() bool {
- return this.activitystreamsArriveMember != nil
-}
-
-// IsActivityStreamsArticle returns true if this property has a type of "Article".
-// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsArticle() bool {
- return this.activitystreamsArticleMember != nil
-}
-
-// IsActivityStreamsAudio returns true if this property has a type of "Audio".
-// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsAudio() bool {
- return this.activitystreamsAudioMember != nil
-}
-
-// IsActivityStreamsBlock returns true if this property has a type of "Block".
-// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsBlock() bool {
- return this.activitystreamsBlockMember != nil
-}
-
-// IsActivityStreamsCollection returns true if this property has a type of
-// "Collection". When true, use the GetActivityStreamsCollection and
-// SetActivityStreamsCollection methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsCollection() bool {
- return this.activitystreamsCollectionMember != nil
-}
-
-// IsActivityStreamsCollectionPage returns true if this property has a type of
-// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
-// SetActivityStreamsCollectionPage methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsCollectionPage() bool {
- return this.activitystreamsCollectionPageMember != nil
-}
-
-// IsActivityStreamsCreate returns true if this property has a type of "Create".
-// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsCreate() bool {
- return this.activitystreamsCreateMember != nil
-}
-
-// IsActivityStreamsDelete returns true if this property has a type of "Delete".
-// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsDelete() bool {
- return this.activitystreamsDeleteMember != nil
-}
-
-// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
-// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsDislike() bool {
- return this.activitystreamsDislikeMember != nil
-}
-
-// IsActivityStreamsDocument returns true if this property has a type of
-// "Document". When true, use the GetActivityStreamsDocument and
-// SetActivityStreamsDocument methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsDocument() bool {
- return this.activitystreamsDocumentMember != nil
-}
-
-// IsActivityStreamsEvent returns true if this property has a type of "Event".
-// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsEvent() bool {
- return this.activitystreamsEventMember != nil
-}
-
-// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
-// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsFlag() bool {
- return this.activitystreamsFlagMember != nil
-}
-
-// IsActivityStreamsFollow returns true if this property has a type of "Follow".
-// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsFollow() bool {
- return this.activitystreamsFollowMember != nil
-}
-
-// IsActivityStreamsGroup returns true if this property has a type of "Group".
-// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsGroup() bool {
- return this.activitystreamsGroupMember != nil
-}
-
-// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
-// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsIgnore() bool {
- return this.activitystreamsIgnoreMember != nil
-}
-
-// IsActivityStreamsImage returns true if this property has a type of "Image".
-// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsImage() bool {
- return this.activitystreamsImageMember != nil
-}
-
-// IsActivityStreamsIntransitiveActivity returns true if this property has a type
-// of "IntransitiveActivity". When true, use the
-// GetActivityStreamsIntransitiveActivity and
-// SetActivityStreamsIntransitiveActivity methods to access and set this
-// property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsIntransitiveActivity() bool {
- return this.activitystreamsIntransitiveActivityMember != nil
-}
-
-// IsActivityStreamsInvite returns true if this property has a type of "Invite".
-// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsInvite() bool {
- return this.activitystreamsInviteMember != nil
-}
-
-// IsActivityStreamsJoin returns true if this property has a type of "Join". When
-// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsJoin() bool {
- return this.activitystreamsJoinMember != nil
-}
-
-// IsActivityStreamsLeave returns true if this property has a type of "Leave".
-// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsLeave() bool {
- return this.activitystreamsLeaveMember != nil
-}
-
-// IsActivityStreamsLike returns true if this property has a type of "Like". When
-// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsLike() bool {
- return this.activitystreamsLikeMember != nil
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsListen returns true if this property has a type of "Listen".
-// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsListen() bool {
- return this.activitystreamsListenMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsActivityStreamsMove returns true if this property has a type of "Move". When
-// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsMove() bool {
- return this.activitystreamsMoveMember != nil
-}
-
-// IsActivityStreamsNote returns true if this property has a type of "Note". When
-// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsNote() bool {
- return this.activitystreamsNoteMember != nil
-}
-
-// IsActivityStreamsObject returns true if this property has a type of "Object".
-// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsObject() bool {
- return this.activitystreamsObjectMember != nil
-}
-
-// IsActivityStreamsOffer returns true if this property has a type of "Offer".
-// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsOffer() bool {
- return this.activitystreamsOfferMember != nil
-}
-
-// IsActivityStreamsOrderedCollection returns true if this property has a type of
-// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
-// and SetActivityStreamsOrderedCollection methods to access and set this
-// property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsOrderedCollection() bool {
- return this.activitystreamsOrderedCollectionMember != nil
-}
-
-// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
-// of "OrderedCollectionPage". When true, use the
-// GetActivityStreamsOrderedCollectionPage and
-// SetActivityStreamsOrderedCollectionPage methods to access and set this
-// property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsOrderedCollectionPage() bool {
- return this.activitystreamsOrderedCollectionPageMember != nil
-}
-
-// IsActivityStreamsOrganization returns true if this property has a type of
-// "Organization". When true, use the GetActivityStreamsOrganization and
-// SetActivityStreamsOrganization methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsOrganization() bool {
- return this.activitystreamsOrganizationMember != nil
-}
-
-// IsActivityStreamsPage returns true if this property has a type of "Page". When
-// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsPage() bool {
- return this.activitystreamsPageMember != nil
-}
-
-// IsActivityStreamsPerson returns true if this property has a type of "Person".
-// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsPerson() bool {
- return this.activitystreamsPersonMember != nil
-}
-
-// IsActivityStreamsPlace returns true if this property has a type of "Place".
-// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsPlace() bool {
- return this.activitystreamsPlaceMember != nil
-}
-
-// IsActivityStreamsProfile returns true if this property has a type of "Profile".
-// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsProfile() bool {
- return this.activitystreamsProfileMember != nil
-}
-
-// IsActivityStreamsQuestion returns true if this property has a type of
-// "Question". When true, use the GetActivityStreamsQuestion and
-// SetActivityStreamsQuestion methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsQuestion() bool {
- return this.activitystreamsQuestionMember != nil
-}
-
-// IsActivityStreamsRead returns true if this property has a type of "Read". When
-// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsRead() bool {
- return this.activitystreamsReadMember != nil
-}
-
-// IsActivityStreamsReject returns true if this property has a type of "Reject".
-// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsReject() bool {
- return this.activitystreamsRejectMember != nil
-}
-
-// IsActivityStreamsRelationship returns true if this property has a type of
-// "Relationship". When true, use the GetActivityStreamsRelationship and
-// SetActivityStreamsRelationship methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsRelationship() bool {
- return this.activitystreamsRelationshipMember != nil
-}
-
-// IsActivityStreamsRemove returns true if this property has a type of "Remove".
-// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsRemove() bool {
- return this.activitystreamsRemoveMember != nil
-}
-
-// IsActivityStreamsService returns true if this property has a type of "Service".
-// When true, use the GetActivityStreamsService and SetActivityStreamsService
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsService() bool {
- return this.activitystreamsServiceMember != nil
-}
-
-// IsActivityStreamsTentativeAccept returns true if this property has a type of
-// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
-// SetActivityStreamsTentativeAccept methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsTentativeAccept() bool {
- return this.activitystreamsTentativeAcceptMember != nil
-}
-
-// IsActivityStreamsTentativeReject returns true if this property has a type of
-// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
-// SetActivityStreamsTentativeReject methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsTentativeReject() bool {
- return this.activitystreamsTentativeRejectMember != nil
-}
-
-// IsActivityStreamsTombstone returns true if this property has a type of
-// "Tombstone". When true, use the GetActivityStreamsTombstone and
-// SetActivityStreamsTombstone methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsTombstone() bool {
- return this.activitystreamsTombstoneMember != nil
-}
-
-// IsActivityStreamsTravel returns true if this property has a type of "Travel".
-// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsTravel() bool {
- return this.activitystreamsTravelMember != nil
-}
-
-// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
-// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsUndo() bool {
- return this.activitystreamsUndoMember != nil
-}
-
-// IsActivityStreamsUpdate returns true if this property has a type of "Update".
-// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsUpdate() bool {
- return this.activitystreamsUpdateMember != nil
-}
-
-// IsActivityStreamsVideo returns true if this property has a type of "Video".
-// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
-// methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsVideo() bool {
- return this.activitystreamsVideoMember != nil
-}
-
-// IsActivityStreamsView returns true if this property has a type of "View". When
-// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
-// access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsActivityStreamsView() bool {
- return this.activitystreamsViewMember != nil
-}
-
-// IsForgeFedBranch returns true if this property has a type of "Branch". When
-// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
-// set this property.
-func (this ActivityStreamsToPropertyIterator) IsForgeFedBranch() bool {
- return this.forgefedBranchMember != nil
-}
-
-// IsForgeFedCommit returns true if this property has a type of "Commit". When
-// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
-// set this property.
-func (this ActivityStreamsToPropertyIterator) IsForgeFedCommit() bool {
- return this.forgefedCommitMember != nil
-}
-
-// IsForgeFedPush returns true if this property has a type of "Push". When true,
-// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
-// property.
-func (this ActivityStreamsToPropertyIterator) IsForgeFedPush() bool {
- return this.forgefedPushMember != nil
-}
-
-// IsForgeFedRepository returns true if this property has a type of "Repository".
-// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
-// to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsForgeFedRepository() bool {
- return this.forgefedRepositoryMember != nil
-}
-
-// IsForgeFedTicket returns true if this property has a type of "Ticket". When
-// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
-// set this property.
-func (this ActivityStreamsToPropertyIterator) IsForgeFedTicket() bool {
- return this.forgefedTicketMember != nil
-}
-
-// IsForgeFedTicketDependency returns true if this property has a type of
-// "TicketDependency". When true, use the GetForgeFedTicketDependency and
-// SetForgeFedTicketDependency methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) IsForgeFedTicketDependency() bool {
- return this.forgefedTicketDependencyMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsToPropertyIterator) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
-// the GetTootEmoji and SetTootEmoji methods to access and set this property.
-func (this ActivityStreamsToPropertyIterator) 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 ActivityStreamsToPropertyIterator) IsTootIdentityProof() bool {
- return this.tootIdentityProofMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsObject() {
- child = this.GetActivityStreamsObject().JSONLDContext()
- } else if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsAccept() {
- child = this.GetActivityStreamsAccept().JSONLDContext()
- } else if this.IsActivityStreamsActivity() {
- child = this.GetActivityStreamsActivity().JSONLDContext()
- } else if this.IsActivityStreamsAdd() {
- child = this.GetActivityStreamsAdd().JSONLDContext()
- } else if this.IsActivityStreamsAnnounce() {
- child = this.GetActivityStreamsAnnounce().JSONLDContext()
- } else if this.IsActivityStreamsApplication() {
- child = this.GetActivityStreamsApplication().JSONLDContext()
- } else if this.IsActivityStreamsArrive() {
- child = this.GetActivityStreamsArrive().JSONLDContext()
- } else if this.IsActivityStreamsArticle() {
- child = this.GetActivityStreamsArticle().JSONLDContext()
- } else if this.IsActivityStreamsAudio() {
- child = this.GetActivityStreamsAudio().JSONLDContext()
- } else if this.IsActivityStreamsBlock() {
- child = this.GetActivityStreamsBlock().JSONLDContext()
- } else if this.IsForgeFedBranch() {
- child = this.GetForgeFedBranch().JSONLDContext()
- } else if this.IsActivityStreamsCollection() {
- child = this.GetActivityStreamsCollection().JSONLDContext()
- } else if this.IsActivityStreamsCollectionPage() {
- child = this.GetActivityStreamsCollectionPage().JSONLDContext()
- } else if this.IsForgeFedCommit() {
- child = this.GetForgeFedCommit().JSONLDContext()
- } else if this.IsActivityStreamsCreate() {
- child = this.GetActivityStreamsCreate().JSONLDContext()
- } else if this.IsActivityStreamsDelete() {
- child = this.GetActivityStreamsDelete().JSONLDContext()
- } else if this.IsActivityStreamsDislike() {
- child = this.GetActivityStreamsDislike().JSONLDContext()
- } else if this.IsActivityStreamsDocument() {
- child = this.GetActivityStreamsDocument().JSONLDContext()
- } else if this.IsTootEmoji() {
- child = this.GetTootEmoji().JSONLDContext()
- } else if this.IsActivityStreamsEvent() {
- child = this.GetActivityStreamsEvent().JSONLDContext()
- } else if this.IsActivityStreamsFlag() {
- child = this.GetActivityStreamsFlag().JSONLDContext()
- } else if this.IsActivityStreamsFollow() {
- child = this.GetActivityStreamsFollow().JSONLDContext()
- } else if this.IsActivityStreamsGroup() {
- child = this.GetActivityStreamsGroup().JSONLDContext()
- } else if this.IsTootIdentityProof() {
- child = this.GetTootIdentityProof().JSONLDContext()
- } else if this.IsActivityStreamsIgnore() {
- child = this.GetActivityStreamsIgnore().JSONLDContext()
- } else if this.IsActivityStreamsImage() {
- child = this.GetActivityStreamsImage().JSONLDContext()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
- } else if this.IsActivityStreamsInvite() {
- child = this.GetActivityStreamsInvite().JSONLDContext()
- } else if this.IsActivityStreamsJoin() {
- child = this.GetActivityStreamsJoin().JSONLDContext()
- } else if this.IsActivityStreamsLeave() {
- child = this.GetActivityStreamsLeave().JSONLDContext()
- } else if this.IsActivityStreamsLike() {
- child = this.GetActivityStreamsLike().JSONLDContext()
- } else if this.IsActivityStreamsListen() {
- child = this.GetActivityStreamsListen().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- } else if this.IsActivityStreamsMove() {
- child = this.GetActivityStreamsMove().JSONLDContext()
- } else if this.IsActivityStreamsNote() {
- child = this.GetActivityStreamsNote().JSONLDContext()
- } else if this.IsActivityStreamsOffer() {
- child = this.GetActivityStreamsOffer().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollection() {
- child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
- } else if this.IsActivityStreamsOrganization() {
- child = this.GetActivityStreamsOrganization().JSONLDContext()
- } else if this.IsActivityStreamsPage() {
- child = this.GetActivityStreamsPage().JSONLDContext()
- } else if this.IsActivityStreamsPerson() {
- child = this.GetActivityStreamsPerson().JSONLDContext()
- } else if this.IsActivityStreamsPlace() {
- child = this.GetActivityStreamsPlace().JSONLDContext()
- } else if this.IsActivityStreamsProfile() {
- child = this.GetActivityStreamsProfile().JSONLDContext()
- } else if this.IsForgeFedPush() {
- child = this.GetForgeFedPush().JSONLDContext()
- } else if this.IsActivityStreamsQuestion() {
- child = this.GetActivityStreamsQuestion().JSONLDContext()
- } else if this.IsActivityStreamsRead() {
- child = this.GetActivityStreamsRead().JSONLDContext()
- } else if this.IsActivityStreamsReject() {
- child = this.GetActivityStreamsReject().JSONLDContext()
- } else if this.IsActivityStreamsRelationship() {
- child = this.GetActivityStreamsRelationship().JSONLDContext()
- } else if this.IsActivityStreamsRemove() {
- child = this.GetActivityStreamsRemove().JSONLDContext()
- } else if this.IsForgeFedRepository() {
- child = this.GetForgeFedRepository().JSONLDContext()
- } else if this.IsActivityStreamsService() {
- child = this.GetActivityStreamsService().JSONLDContext()
- } else if this.IsActivityStreamsTentativeAccept() {
- child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
- } else if this.IsActivityStreamsTentativeReject() {
- child = this.GetActivityStreamsTentativeReject().JSONLDContext()
- } else if this.IsForgeFedTicket() {
- child = this.GetForgeFedTicket().JSONLDContext()
- } else if this.IsForgeFedTicketDependency() {
- child = this.GetForgeFedTicketDependency().JSONLDContext()
- } else if this.IsActivityStreamsTombstone() {
- child = this.GetActivityStreamsTombstone().JSONLDContext()
- } else if this.IsActivityStreamsTravel() {
- child = this.GetActivityStreamsTravel().JSONLDContext()
- } else if this.IsActivityStreamsUndo() {
- child = this.GetActivityStreamsUndo().JSONLDContext()
- } else if this.IsActivityStreamsUpdate() {
- child = this.GetActivityStreamsUpdate().JSONLDContext()
- } else if this.IsActivityStreamsVideo() {
- child = this.GetActivityStreamsVideo().JSONLDContext()
- } else if this.IsActivityStreamsView() {
- child = this.GetActivityStreamsView().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsToPropertyIterator) KindIndex() int {
- if this.IsActivityStreamsObject() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsAccept() {
- return 2
- }
- if this.IsActivityStreamsActivity() {
- return 3
- }
- if this.IsActivityStreamsAdd() {
- return 4
- }
- if this.IsActivityStreamsAnnounce() {
- return 5
- }
- if this.IsActivityStreamsApplication() {
- return 6
- }
- if this.IsActivityStreamsArrive() {
- return 7
- }
- if this.IsActivityStreamsArticle() {
- return 8
- }
- if this.IsActivityStreamsAudio() {
- return 9
- }
- if this.IsActivityStreamsBlock() {
- return 10
- }
- if this.IsForgeFedBranch() {
- return 11
- }
- if this.IsActivityStreamsCollection() {
- return 12
- }
- if this.IsActivityStreamsCollectionPage() {
- return 13
- }
- if this.IsForgeFedCommit() {
- return 14
- }
- if this.IsActivityStreamsCreate() {
- return 15
- }
- if this.IsActivityStreamsDelete() {
- return 16
- }
- if this.IsActivityStreamsDislike() {
- return 17
- }
- if this.IsActivityStreamsDocument() {
- return 18
- }
- if this.IsTootEmoji() {
- return 19
- }
- if this.IsActivityStreamsEvent() {
- return 20
- }
- if this.IsActivityStreamsFlag() {
- return 21
- }
- if this.IsActivityStreamsFollow() {
- return 22
- }
- if this.IsActivityStreamsGroup() {
- return 23
- }
- if this.IsTootIdentityProof() {
- return 24
- }
- if this.IsActivityStreamsIgnore() {
- return 25
- }
- if this.IsActivityStreamsImage() {
- return 26
- }
- if this.IsActivityStreamsIntransitiveActivity() {
- return 27
- }
- if this.IsActivityStreamsInvite() {
- return 28
- }
- if this.IsActivityStreamsJoin() {
- return 29
- }
- if this.IsActivityStreamsLeave() {
- return 30
- }
- if this.IsActivityStreamsLike() {
- return 31
- }
- if this.IsActivityStreamsListen() {
- return 32
- }
- if this.IsActivityStreamsMention() {
- return 33
- }
- if this.IsActivityStreamsMove() {
- return 34
- }
- if this.IsActivityStreamsNote() {
- return 35
- }
- if this.IsActivityStreamsOffer() {
- return 36
- }
- if this.IsActivityStreamsOrderedCollection() {
- return 37
- }
- if this.IsActivityStreamsOrderedCollectionPage() {
- return 38
- }
- if this.IsActivityStreamsOrganization() {
- return 39
- }
- if this.IsActivityStreamsPage() {
- return 40
- }
- if this.IsActivityStreamsPerson() {
- return 41
- }
- if this.IsActivityStreamsPlace() {
- return 42
- }
- if this.IsActivityStreamsProfile() {
- return 43
- }
- if this.IsForgeFedPush() {
- return 44
- }
- if this.IsActivityStreamsQuestion() {
- return 45
- }
- if this.IsActivityStreamsRead() {
- return 46
- }
- if this.IsActivityStreamsReject() {
- return 47
- }
- if this.IsActivityStreamsRelationship() {
- return 48
- }
- if this.IsActivityStreamsRemove() {
- return 49
- }
- if this.IsForgeFedRepository() {
- return 50
- }
- if this.IsActivityStreamsService() {
- return 51
- }
- if this.IsActivityStreamsTentativeAccept() {
- return 52
- }
- if this.IsActivityStreamsTentativeReject() {
- return 53
- }
- if this.IsForgeFedTicket() {
- return 54
- }
- if this.IsForgeFedTicketDependency() {
- return 55
- }
- if this.IsActivityStreamsTombstone() {
- return 56
- }
- if this.IsActivityStreamsTravel() {
- return 57
- }
- if this.IsActivityStreamsUndo() {
- return 58
- }
- if this.IsActivityStreamsUpdate() {
- return 59
- }
- if this.IsActivityStreamsVideo() {
- return 60
- }
- if this.IsActivityStreamsView() {
- return 61
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsToPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().LessThan(o.GetTootEmoji())
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
- } else if this.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsTo".
-func (this ActivityStreamsToPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsTo"
- } else {
- return "ActivityStreamsTo"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsToPropertyIterator) Next() vocab.ActivityStreamsToPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsToPropertyIterator) Prev() vocab.ActivityStreamsToPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsAccept sets the value of this property. Calling
-// IsActivityStreamsAccept afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.clear()
- this.activitystreamsAcceptMember = v
-}
-
-// SetActivityStreamsActivity sets the value of this property. Calling
-// IsActivityStreamsActivity afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.clear()
- this.activitystreamsActivityMember = v
-}
-
-// SetActivityStreamsAdd sets the value of this property. Calling
-// IsActivityStreamsAdd afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.clear()
- this.activitystreamsAddMember = v
-}
-
-// SetActivityStreamsAnnounce sets the value of this property. Calling
-// IsActivityStreamsAnnounce afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.clear()
- this.activitystreamsAnnounceMember = v
-}
-
-// SetActivityStreamsApplication sets the value of this property. Calling
-// IsActivityStreamsApplication afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.clear()
- this.activitystreamsApplicationMember = v
-}
-
-// SetActivityStreamsArrive sets the value of this property. Calling
-// IsActivityStreamsArrive afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.clear()
- this.activitystreamsArriveMember = v
-}
-
-// SetActivityStreamsArticle sets the value of this property. Calling
-// IsActivityStreamsArticle afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.clear()
- this.activitystreamsArticleMember = v
-}
-
-// SetActivityStreamsAudio sets the value of this property. Calling
-// IsActivityStreamsAudio afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.clear()
- this.activitystreamsAudioMember = v
-}
-
-// SetActivityStreamsBlock sets the value of this property. Calling
-// IsActivityStreamsBlock afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.clear()
- this.activitystreamsBlockMember = v
-}
-
-// SetActivityStreamsCollection sets the value of this property. Calling
-// IsActivityStreamsCollection afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.clear()
- this.activitystreamsCollectionMember = v
-}
-
-// SetActivityStreamsCollectionPage sets the value of this property. Calling
-// IsActivityStreamsCollectionPage afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.clear()
- this.activitystreamsCollectionPageMember = v
-}
-
-// SetActivityStreamsCreate sets the value of this property. Calling
-// IsActivityStreamsCreate afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.clear()
- this.activitystreamsCreateMember = v
-}
-
-// SetActivityStreamsDelete sets the value of this property. Calling
-// IsActivityStreamsDelete afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.clear()
- this.activitystreamsDeleteMember = v
-}
-
-// SetActivityStreamsDislike sets the value of this property. Calling
-// IsActivityStreamsDislike afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.clear()
- this.activitystreamsDislikeMember = v
-}
-
-// SetActivityStreamsDocument sets the value of this property. Calling
-// IsActivityStreamsDocument afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.clear()
- this.activitystreamsDocumentMember = v
-}
-
-// SetActivityStreamsEvent sets the value of this property. Calling
-// IsActivityStreamsEvent afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.clear()
- this.activitystreamsEventMember = v
-}
-
-// SetActivityStreamsFlag sets the value of this property. Calling
-// IsActivityStreamsFlag afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.clear()
- this.activitystreamsFlagMember = v
-}
-
-// SetActivityStreamsFollow sets the value of this property. Calling
-// IsActivityStreamsFollow afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.clear()
- this.activitystreamsFollowMember = v
-}
-
-// SetActivityStreamsGroup sets the value of this property. Calling
-// IsActivityStreamsGroup afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.clear()
- this.activitystreamsGroupMember = v
-}
-
-// SetActivityStreamsIgnore sets the value of this property. Calling
-// IsActivityStreamsIgnore afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.clear()
- this.activitystreamsIgnoreMember = v
-}
-
-// SetActivityStreamsImage sets the value of this property. Calling
-// IsActivityStreamsImage afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.clear()
- this.activitystreamsImageMember = v
-}
-
-// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
-// IsActivityStreamsIntransitiveActivity afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.clear()
- this.activitystreamsIntransitiveActivityMember = v
-}
-
-// SetActivityStreamsInvite sets the value of this property. Calling
-// IsActivityStreamsInvite afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.clear()
- this.activitystreamsInviteMember = v
-}
-
-// SetActivityStreamsJoin sets the value of this property. Calling
-// IsActivityStreamsJoin afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.clear()
- this.activitystreamsJoinMember = v
-}
-
-// SetActivityStreamsLeave sets the value of this property. Calling
-// IsActivityStreamsLeave afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.clear()
- this.activitystreamsLeaveMember = v
-}
-
-// SetActivityStreamsLike sets the value of this property. Calling
-// IsActivityStreamsLike afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.clear()
- this.activitystreamsLikeMember = v
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsListen sets the value of this property. Calling
-// IsActivityStreamsListen afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.clear()
- this.activitystreamsListenMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetActivityStreamsMove sets the value of this property. Calling
-// IsActivityStreamsMove afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.clear()
- this.activitystreamsMoveMember = v
-}
-
-// SetActivityStreamsNote sets the value of this property. Calling
-// IsActivityStreamsNote afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.clear()
- this.activitystreamsNoteMember = v
-}
-
-// SetActivityStreamsObject sets the value of this property. Calling
-// IsActivityStreamsObject afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.clear()
- this.activitystreamsObjectMember = v
-}
-
-// SetActivityStreamsOffer sets the value of this property. Calling
-// IsActivityStreamsOffer afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.clear()
- this.activitystreamsOfferMember = v
-}
-
-// SetActivityStreamsOrderedCollection sets the value of this property. Calling
-// IsActivityStreamsOrderedCollection afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.clear()
- this.activitystreamsOrderedCollectionMember = v
-}
-
-// SetActivityStreamsOrderedCollectionPage sets the value of this property.
-// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.clear()
- this.activitystreamsOrderedCollectionPageMember = v
-}
-
-// SetActivityStreamsOrganization sets the value of this property. Calling
-// IsActivityStreamsOrganization afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.clear()
- this.activitystreamsOrganizationMember = v
-}
-
-// SetActivityStreamsPage sets the value of this property. Calling
-// IsActivityStreamsPage afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.clear()
- this.activitystreamsPageMember = v
-}
-
-// SetActivityStreamsPerson sets the value of this property. Calling
-// IsActivityStreamsPerson afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.clear()
- this.activitystreamsPersonMember = v
-}
-
-// SetActivityStreamsPlace sets the value of this property. Calling
-// IsActivityStreamsPlace afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.clear()
- this.activitystreamsPlaceMember = v
-}
-
-// SetActivityStreamsProfile sets the value of this property. Calling
-// IsActivityStreamsProfile afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.clear()
- this.activitystreamsProfileMember = v
-}
-
-// SetActivityStreamsQuestion sets the value of this property. Calling
-// IsActivityStreamsQuestion afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.clear()
- this.activitystreamsQuestionMember = v
-}
-
-// SetActivityStreamsRead sets the value of this property. Calling
-// IsActivityStreamsRead afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.clear()
- this.activitystreamsReadMember = v
-}
-
-// SetActivityStreamsReject sets the value of this property. Calling
-// IsActivityStreamsReject afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.clear()
- this.activitystreamsRejectMember = v
-}
-
-// SetActivityStreamsRelationship sets the value of this property. Calling
-// IsActivityStreamsRelationship afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.clear()
- this.activitystreamsRelationshipMember = v
-}
-
-// SetActivityStreamsRemove sets the value of this property. Calling
-// IsActivityStreamsRemove afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.clear()
- this.activitystreamsRemoveMember = v
-}
-
-// SetActivityStreamsService sets the value of this property. Calling
-// IsActivityStreamsService afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsService(v vocab.ActivityStreamsService) {
- this.clear()
- this.activitystreamsServiceMember = v
-}
-
-// SetActivityStreamsTentativeAccept sets the value of this property. Calling
-// IsActivityStreamsTentativeAccept afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.clear()
- this.activitystreamsTentativeAcceptMember = v
-}
-
-// SetActivityStreamsTentativeReject sets the value of this property. Calling
-// IsActivityStreamsTentativeReject afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.clear()
- this.activitystreamsTentativeRejectMember = v
-}
-
-// SetActivityStreamsTombstone sets the value of this property. Calling
-// IsActivityStreamsTombstone afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.clear()
- this.activitystreamsTombstoneMember = v
-}
-
-// SetActivityStreamsTravel sets the value of this property. Calling
-// IsActivityStreamsTravel afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.clear()
- this.activitystreamsTravelMember = v
-}
-
-// SetActivityStreamsUndo sets the value of this property. Calling
-// IsActivityStreamsUndo afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.clear()
- this.activitystreamsUndoMember = v
-}
-
-// SetActivityStreamsUpdate sets the value of this property. Calling
-// IsActivityStreamsUpdate afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.clear()
- this.activitystreamsUpdateMember = v
-}
-
-// SetActivityStreamsVideo sets the value of this property. Calling
-// IsActivityStreamsVideo afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.clear()
- this.activitystreamsVideoMember = v
-}
-
-// SetActivityStreamsView sets the value of this property. Calling
-// IsActivityStreamsView afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsView(v vocab.ActivityStreamsView) {
- this.clear()
- this.activitystreamsViewMember = v
-}
-
-// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
-// afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetForgeFedBranch(v vocab.ForgeFedBranch) {
- this.clear()
- this.forgefedBranchMember = v
-}
-
-// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
-// afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetForgeFedCommit(v vocab.ForgeFedCommit) {
- this.clear()
- this.forgefedCommitMember = v
-}
-
-// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
-// afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetForgeFedPush(v vocab.ForgeFedPush) {
- this.clear()
- this.forgefedPushMember = v
-}
-
-// SetForgeFedRepository sets the value of this property. Calling
-// IsForgeFedRepository afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetForgeFedRepository(v vocab.ForgeFedRepository) {
- this.clear()
- this.forgefedRepositoryMember = v
-}
-
-// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
-// afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetForgeFedTicket(v vocab.ForgeFedTicket) {
- this.clear()
- this.forgefedTicketMember = v
-}
-
-// SetForgeFedTicketDependency sets the value of this property. Calling
-// IsForgeFedTicketDependency afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.clear()
- this.forgefedTicketDependencyMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.iri = v
-}
-
-// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
-// returns true.
-func (this *ActivityStreamsToPropertyIterator) SetTootEmoji(v vocab.TootEmoji) {
- this.clear()
- this.tootEmojiMember = v
-}
-
-// SetTootIdentityProof sets the value of this property. Calling
-// IsTootIdentityProof afterwards returns true.
-func (this *ActivityStreamsToPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
- this.clear()
- this.tootIdentityProofMember = v
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsObject); ok {
- this.SetActivityStreamsObject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAccept); ok {
- this.SetActivityStreamsAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsActivity); ok {
- this.SetActivityStreamsActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAdd); ok {
- this.SetActivityStreamsAdd(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
- this.SetActivityStreamsAnnounce(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsApplication); ok {
- this.SetActivityStreamsApplication(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArrive); ok {
- this.SetActivityStreamsArrive(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsArticle); ok {
- this.SetActivityStreamsArticle(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsAudio); ok {
- this.SetActivityStreamsAudio(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsBlock); ok {
- this.SetActivityStreamsBlock(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedBranch); ok {
- this.SetForgeFedBranch(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollection); ok {
- this.SetActivityStreamsCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
- this.SetActivityStreamsCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedCommit); ok {
- this.SetForgeFedCommit(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsCreate); ok {
- this.SetActivityStreamsCreate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDelete); ok {
- this.SetActivityStreamsDelete(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDislike); ok {
- this.SetActivityStreamsDislike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsDocument); ok {
- this.SetActivityStreamsDocument(v)
- return nil
- }
- if v, ok := t.(vocab.TootEmoji); ok {
- this.SetTootEmoji(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsEvent); ok {
- this.SetActivityStreamsEvent(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFlag); ok {
- this.SetActivityStreamsFlag(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsFollow); ok {
- this.SetActivityStreamsFollow(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsGroup); ok {
- this.SetActivityStreamsGroup(v)
- return nil
- }
- if v, ok := t.(vocab.TootIdentityProof); ok {
- this.SetTootIdentityProof(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
- this.SetActivityStreamsIgnore(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsImage); ok {
- this.SetActivityStreamsImage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
- this.SetActivityStreamsIntransitiveActivity(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsInvite); ok {
- this.SetActivityStreamsInvite(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsJoin); ok {
- this.SetActivityStreamsJoin(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLeave); ok {
- this.SetActivityStreamsLeave(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsLike); ok {
- this.SetActivityStreamsLike(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsListen); ok {
- this.SetActivityStreamsListen(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMove); ok {
- this.SetActivityStreamsMove(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsNote); ok {
- this.SetActivityStreamsNote(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOffer); ok {
- this.SetActivityStreamsOffer(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
- this.SetActivityStreamsOrderedCollection(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
- this.SetActivityStreamsOrderedCollectionPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
- this.SetActivityStreamsOrganization(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPage); ok {
- this.SetActivityStreamsPage(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPerson); ok {
- this.SetActivityStreamsPerson(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsPlace); ok {
- this.SetActivityStreamsPlace(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsProfile); ok {
- this.SetActivityStreamsProfile(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedPush); ok {
- this.SetForgeFedPush(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
- this.SetActivityStreamsQuestion(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRead); ok {
- this.SetActivityStreamsRead(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsReject); ok {
- this.SetActivityStreamsReject(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
- this.SetActivityStreamsRelationship(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsRemove); ok {
- this.SetActivityStreamsRemove(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedRepository); ok {
- this.SetForgeFedRepository(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsService); ok {
- this.SetActivityStreamsService(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
- this.SetActivityStreamsTentativeAccept(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
- this.SetActivityStreamsTentativeReject(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicket); ok {
- this.SetForgeFedTicket(v)
- return nil
- }
- if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
- this.SetForgeFedTicketDependency(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
- this.SetActivityStreamsTombstone(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsTravel); ok {
- this.SetActivityStreamsTravel(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUndo); ok {
- this.SetActivityStreamsUndo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
- this.SetActivityStreamsUpdate(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsVideo); ok {
- this.SetActivityStreamsVideo(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsView); ok {
- this.SetActivityStreamsView(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsTo property: %T", t)
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsToPropertyIterator) clear() {
- this.activitystreamsObjectMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsAcceptMember = nil
- this.activitystreamsActivityMember = nil
- this.activitystreamsAddMember = nil
- this.activitystreamsAnnounceMember = nil
- this.activitystreamsApplicationMember = nil
- this.activitystreamsArriveMember = nil
- this.activitystreamsArticleMember = nil
- this.activitystreamsAudioMember = nil
- this.activitystreamsBlockMember = nil
- this.forgefedBranchMember = nil
- this.activitystreamsCollectionMember = nil
- this.activitystreamsCollectionPageMember = nil
- this.forgefedCommitMember = nil
- this.activitystreamsCreateMember = nil
- this.activitystreamsDeleteMember = nil
- this.activitystreamsDislikeMember = nil
- this.activitystreamsDocumentMember = nil
- this.tootEmojiMember = nil
- this.activitystreamsEventMember = nil
- this.activitystreamsFlagMember = nil
- this.activitystreamsFollowMember = nil
- this.activitystreamsGroupMember = nil
- this.tootIdentityProofMember = nil
- this.activitystreamsIgnoreMember = nil
- this.activitystreamsImageMember = nil
- this.activitystreamsIntransitiveActivityMember = nil
- this.activitystreamsInviteMember = nil
- this.activitystreamsJoinMember = nil
- this.activitystreamsLeaveMember = nil
- this.activitystreamsLikeMember = nil
- this.activitystreamsListenMember = nil
- this.activitystreamsMentionMember = nil
- this.activitystreamsMoveMember = nil
- this.activitystreamsNoteMember = nil
- this.activitystreamsOfferMember = nil
- this.activitystreamsOrderedCollectionMember = nil
- this.activitystreamsOrderedCollectionPageMember = nil
- this.activitystreamsOrganizationMember = nil
- this.activitystreamsPageMember = nil
- this.activitystreamsPersonMember = nil
- this.activitystreamsPlaceMember = nil
- this.activitystreamsProfileMember = nil
- this.forgefedPushMember = nil
- this.activitystreamsQuestionMember = nil
- this.activitystreamsReadMember = nil
- this.activitystreamsRejectMember = nil
- this.activitystreamsRelationshipMember = nil
- this.activitystreamsRemoveMember = nil
- this.forgefedRepositoryMember = nil
- this.activitystreamsServiceMember = nil
- this.activitystreamsTentativeAcceptMember = nil
- this.activitystreamsTentativeRejectMember = nil
- this.forgefedTicketMember = nil
- this.forgefedTicketDependencyMember = nil
- this.activitystreamsTombstoneMember = nil
- this.activitystreamsTravelMember = nil
- this.activitystreamsUndoMember = nil
- this.activitystreamsUpdateMember = nil
- this.activitystreamsVideoMember = nil
- this.activitystreamsViewMember = nil
- this.unknown = nil
- this.iri = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) {
- if this.IsActivityStreamsObject() {
- return this.GetActivityStreamsObject().Serialize()
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsAccept() {
- return this.GetActivityStreamsAccept().Serialize()
- } else if this.IsActivityStreamsActivity() {
- return this.GetActivityStreamsActivity().Serialize()
- } else if this.IsActivityStreamsAdd() {
- return this.GetActivityStreamsAdd().Serialize()
- } else if this.IsActivityStreamsAnnounce() {
- return this.GetActivityStreamsAnnounce().Serialize()
- } else if this.IsActivityStreamsApplication() {
- return this.GetActivityStreamsApplication().Serialize()
- } else if this.IsActivityStreamsArrive() {
- return this.GetActivityStreamsArrive().Serialize()
- } else if this.IsActivityStreamsArticle() {
- return this.GetActivityStreamsArticle().Serialize()
- } else if this.IsActivityStreamsAudio() {
- return this.GetActivityStreamsAudio().Serialize()
- } else if this.IsActivityStreamsBlock() {
- return this.GetActivityStreamsBlock().Serialize()
- } else if this.IsForgeFedBranch() {
- return this.GetForgeFedBranch().Serialize()
- } else if this.IsActivityStreamsCollection() {
- return this.GetActivityStreamsCollection().Serialize()
- } else if this.IsActivityStreamsCollectionPage() {
- return this.GetActivityStreamsCollectionPage().Serialize()
- } else if this.IsForgeFedCommit() {
- return this.GetForgeFedCommit().Serialize()
- } else if this.IsActivityStreamsCreate() {
- return this.GetActivityStreamsCreate().Serialize()
- } else if this.IsActivityStreamsDelete() {
- return this.GetActivityStreamsDelete().Serialize()
- } else if this.IsActivityStreamsDislike() {
- return this.GetActivityStreamsDislike().Serialize()
- } else if this.IsActivityStreamsDocument() {
- return this.GetActivityStreamsDocument().Serialize()
- } else if this.IsTootEmoji() {
- return this.GetTootEmoji().Serialize()
- } else if this.IsActivityStreamsEvent() {
- return this.GetActivityStreamsEvent().Serialize()
- } else if this.IsActivityStreamsFlag() {
- return this.GetActivityStreamsFlag().Serialize()
- } else if this.IsActivityStreamsFollow() {
- return this.GetActivityStreamsFollow().Serialize()
- } else if this.IsActivityStreamsGroup() {
- return this.GetActivityStreamsGroup().Serialize()
- } else if this.IsTootIdentityProof() {
- return this.GetTootIdentityProof().Serialize()
- } else if this.IsActivityStreamsIgnore() {
- return this.GetActivityStreamsIgnore().Serialize()
- } else if this.IsActivityStreamsImage() {
- return this.GetActivityStreamsImage().Serialize()
- } else if this.IsActivityStreamsIntransitiveActivity() {
- return this.GetActivityStreamsIntransitiveActivity().Serialize()
- } else if this.IsActivityStreamsInvite() {
- return this.GetActivityStreamsInvite().Serialize()
- } else if this.IsActivityStreamsJoin() {
- return this.GetActivityStreamsJoin().Serialize()
- } else if this.IsActivityStreamsLeave() {
- return this.GetActivityStreamsLeave().Serialize()
- } else if this.IsActivityStreamsLike() {
- return this.GetActivityStreamsLike().Serialize()
- } else if this.IsActivityStreamsListen() {
- return this.GetActivityStreamsListen().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- } else if this.IsActivityStreamsMove() {
- return this.GetActivityStreamsMove().Serialize()
- } else if this.IsActivityStreamsNote() {
- return this.GetActivityStreamsNote().Serialize()
- } else if this.IsActivityStreamsOffer() {
- return this.GetActivityStreamsOffer().Serialize()
- } else if this.IsActivityStreamsOrderedCollection() {
- return this.GetActivityStreamsOrderedCollection().Serialize()
- } else if this.IsActivityStreamsOrderedCollectionPage() {
- return this.GetActivityStreamsOrderedCollectionPage().Serialize()
- } else if this.IsActivityStreamsOrganization() {
- return this.GetActivityStreamsOrganization().Serialize()
- } else if this.IsActivityStreamsPage() {
- return this.GetActivityStreamsPage().Serialize()
- } else if this.IsActivityStreamsPerson() {
- return this.GetActivityStreamsPerson().Serialize()
- } else if this.IsActivityStreamsPlace() {
- return this.GetActivityStreamsPlace().Serialize()
- } else if this.IsActivityStreamsProfile() {
- return this.GetActivityStreamsProfile().Serialize()
- } else if this.IsForgeFedPush() {
- return this.GetForgeFedPush().Serialize()
- } else if this.IsActivityStreamsQuestion() {
- return this.GetActivityStreamsQuestion().Serialize()
- } else if this.IsActivityStreamsRead() {
- return this.GetActivityStreamsRead().Serialize()
- } else if this.IsActivityStreamsReject() {
- return this.GetActivityStreamsReject().Serialize()
- } else if this.IsActivityStreamsRelationship() {
- return this.GetActivityStreamsRelationship().Serialize()
- } else if this.IsActivityStreamsRemove() {
- return this.GetActivityStreamsRemove().Serialize()
- } else if this.IsForgeFedRepository() {
- return this.GetForgeFedRepository().Serialize()
- } else if this.IsActivityStreamsService() {
- return this.GetActivityStreamsService().Serialize()
- } else if this.IsActivityStreamsTentativeAccept() {
- return this.GetActivityStreamsTentativeAccept().Serialize()
- } else if this.IsActivityStreamsTentativeReject() {
- return this.GetActivityStreamsTentativeReject().Serialize()
- } else if this.IsForgeFedTicket() {
- return this.GetForgeFedTicket().Serialize()
- } else if this.IsForgeFedTicketDependency() {
- return this.GetForgeFedTicketDependency().Serialize()
- } else if this.IsActivityStreamsTombstone() {
- return this.GetActivityStreamsTombstone().Serialize()
- } else if this.IsActivityStreamsTravel() {
- return this.GetActivityStreamsTravel().Serialize()
- } else if this.IsActivityStreamsUndo() {
- return this.GetActivityStreamsUndo().Serialize()
- } else if this.IsActivityStreamsUpdate() {
- return this.GetActivityStreamsUpdate().Serialize()
- } else if this.IsActivityStreamsVideo() {
- return this.GetActivityStreamsVideo().Serialize()
- } else if this.IsActivityStreamsView() {
- return this.GetActivityStreamsView().Serialize()
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsToProperty is the non-functional property "to". It is permitted
-// to have one or more values, and of different value types.
-type ActivityStreamsToProperty struct {
- properties []*ActivityStreamsToPropertyIterator
- alias string
-}
-
-// DeserializeToProperty creates a "to" property from an interface representation
-// that has been unmarshalled from a text or binary format.
-func DeserializeToProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsToProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "to"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "to")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsToProperty{
- alias: alias,
- properties: []*ActivityStreamsToPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsToPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsToPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsToProperty creates a new to property.
-func NewActivityStreamsToProperty() *ActivityStreamsToProperty {
- return &ActivityStreamsToProperty{alias: ""}
-}
-
-// AppendActivityStreamsAccept appends a Accept value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsActivity appends a Activity value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAdd appends a Add value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAnnounce appends a Announce value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsApplication appends a Application value to the back of a
-// list of the property "to". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArrive appends a Arrive value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsArticle appends a Article value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsAudio appends a Audio value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsBlock appends a Block value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollection appends a Collection value to the back of a
-// list of the property "to". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCollectionPage appends a CollectionPage value to the back
-// of a list of the property "to". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsCreate appends a Create value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDelete appends a Delete value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDislike appends a Dislike value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsDocument appends a Document value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsEvent appends a Event value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFlag appends a Flag value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsFollow appends a Follow value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsGroup appends a Group value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIgnore appends a Ignore value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsImage appends a Image value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsIntransitiveActivity appends a IntransitiveActivity value
-// to the back of a list of the property "to". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsInvite appends a Invite value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsJoin appends a Join value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLeave appends a Leave value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLike appends a Like value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsListen appends a Listen value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMove appends a Move value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsNote appends a Note value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsObject appends a Object value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOffer appends a Offer value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollection appends a OrderedCollection value to the
-// back of a list of the property "to". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrderedCollectionPage appends a OrderedCollectionPage
-// value to the back of a list of the property "to". Invalidates iterators
-// that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsOrganization appends a Organization value to the back of a
-// list of the property "to". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPage appends a Page value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPerson appends a Person value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsPlace appends a Place value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsProfile appends a Profile value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsQuestion appends a Question value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRead appends a Read value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsReject appends a Reject value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRelationship appends a Relationship value to the back of a
-// list of the property "to". Invalidates iterators that are traversing using
-// Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsRemove appends a Remove value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsService appends a Service value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeAccept appends a TentativeAccept value to the
-// back of a list of the property "to". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTentativeReject appends a TentativeReject value to the
-// back of a list of the property "to". Invalidates iterators that are
-// traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTombstone appends a Tombstone value to the back of a list
-// of the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsTravel appends a Travel value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUndo appends a Undo value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsUpdate appends a Update value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsVideo appends a Video value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsView appends a View value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedBranch appends a Branch value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedCommit appends a Commit value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedPush appends a Push value to the back of a list of the property
-// "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedRepository appends a Repository value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicket appends a Ticket value to the back of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendForgeFedTicketDependency appends a TicketDependency value to the back of
-// a list of the property "to". Invalidates iterators that are traversing
-// using Prev.
-func (this *ActivityStreamsToProperty) AppendForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "to"
-func (this *ActivityStreamsToProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendTootEmoji appends a Emoji value to the back of a list of the property
-// "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendTootEmoji(v vocab.TootEmoji) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootEmojiMember: v,
- })
-}
-
-// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
-// the property "to". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsToProperty) AppendTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- tootIdentityProofMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "to". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsToProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsToProperty) At(index int) vocab.ActivityStreamsToPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsToProperty) Begin() vocab.ActivityStreamsToPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsToProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsToProperty) End() vocab.ActivityStreamsToPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsAccept inserts a Accept value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsActivity inserts a Activity value at the specified index
-// for a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAdd inserts a Add value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAnnounce inserts a Announce value at the specified index
-// for a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsApplication inserts a Application value at the specified
-// index for a property "to". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArrive inserts a Arrive value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsArticle inserts a Article value at the specified index for
-// a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsAudio inserts a Audio value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsBlock inserts a Block value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollection inserts a Collection value at the specified
-// index for a property "to". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCollectionPage inserts a CollectionPage value at the
-// specified index for a property "to". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsCreate inserts a Create value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDelete inserts a Delete value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDislike inserts a Dislike value at the specified index for
-// a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsDocument inserts a Document value at the specified index
-// for a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsEvent inserts a Event value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFlag inserts a Flag value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsFollow inserts a Follow value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsGroup inserts a Group value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIgnore inserts a Ignore value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsImage inserts a Image value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsIntransitiveActivity inserts a IntransitiveActivity value
-// at the specified index for a property "to". Existing elements at that index
-// and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsInvite inserts a Invite value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsJoin inserts a Join value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLeave inserts a Leave value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLike inserts a Like value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsListen inserts a Listen value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMove inserts a Move value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsNote inserts a Note value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsObject inserts a Object value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOffer inserts a Offer value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollection inserts a OrderedCollection value at the
-// specified index for a property "to". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrderedCollectionPage inserts a OrderedCollectionPage
-// value at the specified index for a property "to". Existing elements at that
-// index and higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsOrganization inserts a Organization value at the specified
-// index for a property "to". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPage inserts a Page value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPerson inserts a Person value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsPlace inserts a Place value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsProfile inserts a Profile value at the specified index for
-// a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsQuestion inserts a Question value at the specified index
-// for a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRead inserts a Read value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsReject inserts a Reject value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRelationship inserts a Relationship value at the specified
-// index for a property "to". Existing elements at that index and higher are
-// shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsRemove inserts a Remove value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsService inserts a Service value at the specified index for
-// a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeAccept inserts a TentativeAccept value at the
-// specified index for a property "to". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTentativeReject inserts a TentativeReject value at the
-// specified index for a property "to". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTombstone inserts a Tombstone value at the specified index
-// for a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsTravel inserts a Travel value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUndo inserts a Undo value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsUpdate inserts a Update value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsVideo inserts a Video value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsView inserts a View value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedBranch inserts a Branch value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedCommit inserts a Commit value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedPush inserts a Push value at the specified index for a property
-// "to". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertForgeFedPush(idx int, v vocab.ForgeFedPush) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedRepository inserts a Repository value at the specified index for
-// a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicket inserts a Ticket value at the specified index for a
-// property "to". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertForgeFedTicketDependency inserts a TicketDependency value at the
-// specified index for a property "to". Existing elements at that index and
-// higher are shifted back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "to".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootEmoji inserts a Emoji value at the specified index for a property
-// "to". Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertTootEmoji(idx int, v vocab.TootEmoji) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertTootIdentityProof inserts a IdentityProof value at the specified index
-// for a property "to". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) InsertTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "to". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsToProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsToProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsToProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "to" property.
-func (this ActivityStreamsToProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsToProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetActivityStreamsObject()
- rhs := this.properties[j].GetActivityStreamsObject()
- return lhs.LessThan(rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsAccept()
- rhs := this.properties[j].GetActivityStreamsAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 3 {
- lhs := this.properties[i].GetActivityStreamsActivity()
- rhs := this.properties[j].GetActivityStreamsActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 4 {
- lhs := this.properties[i].GetActivityStreamsAdd()
- rhs := this.properties[j].GetActivityStreamsAdd()
- return lhs.LessThan(rhs)
- } else if idx1 == 5 {
- lhs := this.properties[i].GetActivityStreamsAnnounce()
- rhs := this.properties[j].GetActivityStreamsAnnounce()
- return lhs.LessThan(rhs)
- } else if idx1 == 6 {
- lhs := this.properties[i].GetActivityStreamsApplication()
- rhs := this.properties[j].GetActivityStreamsApplication()
- return lhs.LessThan(rhs)
- } else if idx1 == 7 {
- lhs := this.properties[i].GetActivityStreamsArrive()
- rhs := this.properties[j].GetActivityStreamsArrive()
- return lhs.LessThan(rhs)
- } else if idx1 == 8 {
- lhs := this.properties[i].GetActivityStreamsArticle()
- rhs := this.properties[j].GetActivityStreamsArticle()
- return lhs.LessThan(rhs)
- } else if idx1 == 9 {
- lhs := this.properties[i].GetActivityStreamsAudio()
- rhs := this.properties[j].GetActivityStreamsAudio()
- return lhs.LessThan(rhs)
- } else if idx1 == 10 {
- lhs := this.properties[i].GetActivityStreamsBlock()
- rhs := this.properties[j].GetActivityStreamsBlock()
- return lhs.LessThan(rhs)
- } else if idx1 == 11 {
- lhs := this.properties[i].GetForgeFedBranch()
- rhs := this.properties[j].GetForgeFedBranch()
- return lhs.LessThan(rhs)
- } else if idx1 == 12 {
- lhs := this.properties[i].GetActivityStreamsCollection()
- rhs := this.properties[j].GetActivityStreamsCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 13 {
- lhs := this.properties[i].GetActivityStreamsCollectionPage()
- rhs := this.properties[j].GetActivityStreamsCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 14 {
- lhs := this.properties[i].GetForgeFedCommit()
- rhs := this.properties[j].GetForgeFedCommit()
- return lhs.LessThan(rhs)
- } else if idx1 == 15 {
- lhs := this.properties[i].GetActivityStreamsCreate()
- rhs := this.properties[j].GetActivityStreamsCreate()
- return lhs.LessThan(rhs)
- } else if idx1 == 16 {
- lhs := this.properties[i].GetActivityStreamsDelete()
- rhs := this.properties[j].GetActivityStreamsDelete()
- return lhs.LessThan(rhs)
- } else if idx1 == 17 {
- lhs := this.properties[i].GetActivityStreamsDislike()
- rhs := this.properties[j].GetActivityStreamsDislike()
- return lhs.LessThan(rhs)
- } else if idx1 == 18 {
- lhs := this.properties[i].GetActivityStreamsDocument()
- rhs := this.properties[j].GetActivityStreamsDocument()
- return lhs.LessThan(rhs)
- } else if idx1 == 19 {
- lhs := this.properties[i].GetTootEmoji()
- rhs := this.properties[j].GetTootEmoji()
- return lhs.LessThan(rhs)
- } else if idx1 == 20 {
- lhs := this.properties[i].GetActivityStreamsEvent()
- rhs := this.properties[j].GetActivityStreamsEvent()
- return lhs.LessThan(rhs)
- } else if idx1 == 21 {
- lhs := this.properties[i].GetActivityStreamsFlag()
- rhs := this.properties[j].GetActivityStreamsFlag()
- return lhs.LessThan(rhs)
- } else if idx1 == 22 {
- lhs := this.properties[i].GetActivityStreamsFollow()
- rhs := this.properties[j].GetActivityStreamsFollow()
- return lhs.LessThan(rhs)
- } else if idx1 == 23 {
- lhs := this.properties[i].GetActivityStreamsGroup()
- rhs := this.properties[j].GetActivityStreamsGroup()
- return lhs.LessThan(rhs)
- } else if idx1 == 24 {
- lhs := this.properties[i].GetTootIdentityProof()
- rhs := this.properties[j].GetTootIdentityProof()
- return lhs.LessThan(rhs)
- } else if idx1 == 25 {
- lhs := this.properties[i].GetActivityStreamsIgnore()
- rhs := this.properties[j].GetActivityStreamsIgnore()
- return lhs.LessThan(rhs)
- } else if idx1 == 26 {
- lhs := this.properties[i].GetActivityStreamsImage()
- rhs := this.properties[j].GetActivityStreamsImage()
- return lhs.LessThan(rhs)
- } else if idx1 == 27 {
- lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
- rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
- return lhs.LessThan(rhs)
- } else if idx1 == 28 {
- lhs := this.properties[i].GetActivityStreamsInvite()
- rhs := this.properties[j].GetActivityStreamsInvite()
- return lhs.LessThan(rhs)
- } else if idx1 == 29 {
- lhs := this.properties[i].GetActivityStreamsJoin()
- rhs := this.properties[j].GetActivityStreamsJoin()
- return lhs.LessThan(rhs)
- } else if idx1 == 30 {
- lhs := this.properties[i].GetActivityStreamsLeave()
- rhs := this.properties[j].GetActivityStreamsLeave()
- return lhs.LessThan(rhs)
- } else if idx1 == 31 {
- lhs := this.properties[i].GetActivityStreamsLike()
- rhs := this.properties[j].GetActivityStreamsLike()
- return lhs.LessThan(rhs)
- } else if idx1 == 32 {
- lhs := this.properties[i].GetActivityStreamsListen()
- rhs := this.properties[j].GetActivityStreamsListen()
- return lhs.LessThan(rhs)
- } else if idx1 == 33 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == 34 {
- lhs := this.properties[i].GetActivityStreamsMove()
- rhs := this.properties[j].GetActivityStreamsMove()
- return lhs.LessThan(rhs)
- } else if idx1 == 35 {
- lhs := this.properties[i].GetActivityStreamsNote()
- rhs := this.properties[j].GetActivityStreamsNote()
- return lhs.LessThan(rhs)
- } else if idx1 == 36 {
- lhs := this.properties[i].GetActivityStreamsOffer()
- rhs := this.properties[j].GetActivityStreamsOffer()
- return lhs.LessThan(rhs)
- } else if idx1 == 37 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollection()
- rhs := this.properties[j].GetActivityStreamsOrderedCollection()
- return lhs.LessThan(rhs)
- } else if idx1 == 38 {
- lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
- rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 39 {
- lhs := this.properties[i].GetActivityStreamsOrganization()
- rhs := this.properties[j].GetActivityStreamsOrganization()
- return lhs.LessThan(rhs)
- } else if idx1 == 40 {
- lhs := this.properties[i].GetActivityStreamsPage()
- rhs := this.properties[j].GetActivityStreamsPage()
- return lhs.LessThan(rhs)
- } else if idx1 == 41 {
- lhs := this.properties[i].GetActivityStreamsPerson()
- rhs := this.properties[j].GetActivityStreamsPerson()
- return lhs.LessThan(rhs)
- } else if idx1 == 42 {
- lhs := this.properties[i].GetActivityStreamsPlace()
- rhs := this.properties[j].GetActivityStreamsPlace()
- return lhs.LessThan(rhs)
- } else if idx1 == 43 {
- lhs := this.properties[i].GetActivityStreamsProfile()
- rhs := this.properties[j].GetActivityStreamsProfile()
- return lhs.LessThan(rhs)
- } else if idx1 == 44 {
- lhs := this.properties[i].GetForgeFedPush()
- rhs := this.properties[j].GetForgeFedPush()
- return lhs.LessThan(rhs)
- } else if idx1 == 45 {
- lhs := this.properties[i].GetActivityStreamsQuestion()
- rhs := this.properties[j].GetActivityStreamsQuestion()
- return lhs.LessThan(rhs)
- } else if idx1 == 46 {
- lhs := this.properties[i].GetActivityStreamsRead()
- rhs := this.properties[j].GetActivityStreamsRead()
- return lhs.LessThan(rhs)
- } else if idx1 == 47 {
- lhs := this.properties[i].GetActivityStreamsReject()
- rhs := this.properties[j].GetActivityStreamsReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 48 {
- lhs := this.properties[i].GetActivityStreamsRelationship()
- rhs := this.properties[j].GetActivityStreamsRelationship()
- return lhs.LessThan(rhs)
- } else if idx1 == 49 {
- lhs := this.properties[i].GetActivityStreamsRemove()
- rhs := this.properties[j].GetActivityStreamsRemove()
- return lhs.LessThan(rhs)
- } else if idx1 == 50 {
- lhs := this.properties[i].GetForgeFedRepository()
- rhs := this.properties[j].GetForgeFedRepository()
- return lhs.LessThan(rhs)
- } else if idx1 == 51 {
- lhs := this.properties[i].GetActivityStreamsService()
- rhs := this.properties[j].GetActivityStreamsService()
- return lhs.LessThan(rhs)
- } else if idx1 == 52 {
- lhs := this.properties[i].GetActivityStreamsTentativeAccept()
- rhs := this.properties[j].GetActivityStreamsTentativeAccept()
- return lhs.LessThan(rhs)
- } else if idx1 == 53 {
- lhs := this.properties[i].GetActivityStreamsTentativeReject()
- rhs := this.properties[j].GetActivityStreamsTentativeReject()
- return lhs.LessThan(rhs)
- } else if idx1 == 54 {
- lhs := this.properties[i].GetForgeFedTicket()
- rhs := this.properties[j].GetForgeFedTicket()
- return lhs.LessThan(rhs)
- } else if idx1 == 55 {
- lhs := this.properties[i].GetForgeFedTicketDependency()
- rhs := this.properties[j].GetForgeFedTicketDependency()
- return lhs.LessThan(rhs)
- } else if idx1 == 56 {
- lhs := this.properties[i].GetActivityStreamsTombstone()
- rhs := this.properties[j].GetActivityStreamsTombstone()
- return lhs.LessThan(rhs)
- } else if idx1 == 57 {
- lhs := this.properties[i].GetActivityStreamsTravel()
- rhs := this.properties[j].GetActivityStreamsTravel()
- return lhs.LessThan(rhs)
- } else if idx1 == 58 {
- lhs := this.properties[i].GetActivityStreamsUndo()
- rhs := this.properties[j].GetActivityStreamsUndo()
- return lhs.LessThan(rhs)
- } else if idx1 == 59 {
- lhs := this.properties[i].GetActivityStreamsUpdate()
- rhs := this.properties[j].GetActivityStreamsUpdate()
- return lhs.LessThan(rhs)
- } else if idx1 == 60 {
- lhs := this.properties[i].GetActivityStreamsVideo()
- rhs := this.properties[j].GetActivityStreamsVideo()
- return lhs.LessThan(rhs)
- } else if idx1 == 61 {
- lhs := this.properties[i].GetActivityStreamsView()
- rhs := this.properties[j].GetActivityStreamsView()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsToProperty) LessThan(o vocab.ActivityStreamsToProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("to") with any alias.
-func (this ActivityStreamsToProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "to"
- } else {
- return "to"
- }
-}
-
-// PrependActivityStreamsAccept prepends a Accept value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsActivity prepends a Activity value to the front of a list
-// of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAdd prepends a Add value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAnnounce prepends a Announce value to the front of a list
-// of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsApplication prepends a Application value to the front of
-// a list of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArrive prepends a Arrive value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsArticle prepends a Article value to the front of a list
-// of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsAudio prepends a Audio value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsBlock prepends a Block value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollection prepends a Collection value to the front of a
-// list of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCollectionPage prepends a CollectionPage value to the
-// front of a list of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsCreate prepends a Create value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDelete prepends a Delete value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDislike prepends a Dislike value to the front of a list
-// of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsDocument prepends a Document value to the front of a list
-// of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsEvent prepends a Event value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFlag prepends a Flag value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsFollow prepends a Follow value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsGroup prepends a Group value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIgnore prepends a Ignore value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsImage prepends a Image value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsImage(v vocab.ActivityStreamsImage) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsIntransitiveActivity prepends a IntransitiveActivity
-// value to the front of a list of the property "to". Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsInvite prepends a Invite value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsJoin prepends a Join value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLeave prepends a Leave value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLike prepends a Like value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsLike(v vocab.ActivityStreamsLike) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsListen prepends a Listen value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsListen(v vocab.ActivityStreamsListen) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMove prepends a Move value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsMove(v vocab.ActivityStreamsMove) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsNote prepends a Note value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsNote(v vocab.ActivityStreamsNote) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsObject prepends a Object value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsObject(v vocab.ActivityStreamsObject) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOffer prepends a Offer value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollection prepends a OrderedCollection value to
-// the front of a list of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrderedCollectionPage prepends a OrderedCollectionPage
-// value to the front of a list of the property "to". Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsOrganization prepends a Organization value to the front
-// of a list of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPage prepends a Page value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsPage(v vocab.ActivityStreamsPage) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPerson prepends a Person value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsPlace prepends a Place value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsProfile prepends a Profile value to the front of a list
-// of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsQuestion prepends a Question value to the front of a list
-// of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRead prepends a Read value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsRead(v vocab.ActivityStreamsRead) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsReject prepends a Reject value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsReject(v vocab.ActivityStreamsReject) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRelationship prepends a Relationship value to the front
-// of a list of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsRemove prepends a Remove value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsService prepends a Service value to the front of a list
-// of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsService(v vocab.ActivityStreamsService) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeAccept prepends a TentativeAccept value to the
-// front of a list of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTentativeReject prepends a TentativeReject value to the
-// front of a list of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTombstone prepends a Tombstone value to the front of a
-// list of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsTravel prepends a Travel value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUndo prepends a Undo value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsUpdate prepends a Update value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsVideo prepends a Video value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsView prepends a View value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependActivityStreamsView(v vocab.ActivityStreamsView) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedBranch prepends a Branch value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependForgeFedBranch(v vocab.ForgeFedBranch) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedCommit prepends a Commit value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependForgeFedCommit(v vocab.ForgeFedCommit) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedPush prepends a Push value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependForgeFedPush(v vocab.ForgeFedPush) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedRepository prepends a Repository value to the front of a list of
-// the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependForgeFedRepository(v vocab.ForgeFedRepository) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicket prepends a Ticket value to the front of a list of the
-// property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependForgeFedTicket(v vocab.ForgeFedTicket) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependForgeFedTicketDependency prepends a TicketDependency value to the front
-// of a list of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "to".
-func (this *ActivityStreamsToProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- alias: this.alias,
- iri: v,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootEmoji prepends a Emoji value to the front of a list of the property
-// "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependTootEmoji(v vocab.TootEmoji) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootEmojiMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
-// of the property "to". Invalidates all iterators.
-func (this *ActivityStreamsToProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
- this.properties = append([]*ActivityStreamsToPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- tootIdentityProofMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "to". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsToProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsToPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "to", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsToProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsToPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsToProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsAccept sets a Accept value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsAccept(idx int, v vocab.ActivityStreamsAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsActivity sets a Activity value to be at the specified index
-// for the property "to". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsActivity(idx int, v vocab.ActivityStreamsActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAdd sets a Add value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsAdd(idx int, v vocab.ActivityStreamsAdd) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsAddMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAnnounce sets a Announce value to be at the specified index
-// for the property "to". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsAnnounce(idx int, v vocab.ActivityStreamsAnnounce) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsAnnounceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsApplication sets a Application value to be at the specified
-// index for the property "to". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsApplication(idx int, v vocab.ActivityStreamsApplication) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsApplicationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArrive sets a Arrive value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsArrive(idx int, v vocab.ActivityStreamsArrive) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsArriveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsArticle sets a Article value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsArticle(idx int, v vocab.ActivityStreamsArticle) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsArticleMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsAudio sets a Audio value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsAudio(idx int, v vocab.ActivityStreamsAudio) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsAudioMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsBlock sets a Block value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsBlock(idx int, v vocab.ActivityStreamsBlock) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsBlockMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollection sets a Collection value to be at the specified
-// index for the property "to". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsCollection(idx int, v vocab.ActivityStreamsCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCollectionPage sets a CollectionPage value to be at the
-// specified index for the property "to". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsCollectionPage(idx int, v vocab.ActivityStreamsCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsCreate sets a Create value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsCreate(idx int, v vocab.ActivityStreamsCreate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsCreateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDelete sets a Delete value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsDelete(idx int, v vocab.ActivityStreamsDelete) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsDeleteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDislike sets a Dislike value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsDislike(idx int, v vocab.ActivityStreamsDislike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsDislikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsDocument sets a Document value to be at the specified index
-// for the property "to". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsDocument(idx int, v vocab.ActivityStreamsDocument) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsDocumentMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsEvent sets a Event value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsEvent(idx int, v vocab.ActivityStreamsEvent) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsEventMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFlag sets a Flag value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsFlag(idx int, v vocab.ActivityStreamsFlag) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsFlagMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsFollow sets a Follow value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsFollow(idx int, v vocab.ActivityStreamsFollow) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsFollowMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsGroup sets a Group value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsGroup(idx int, v vocab.ActivityStreamsGroup) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsGroupMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIgnore sets a Ignore value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsIgnore(idx int, v vocab.ActivityStreamsIgnore) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsIgnoreMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsImage sets a Image value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsImage(idx int, v vocab.ActivityStreamsImage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsImageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsIntransitiveActivity sets a IntransitiveActivity value to be
-// at the specified index for the property "to". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsIntransitiveActivity(idx int, v vocab.ActivityStreamsIntransitiveActivity) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsIntransitiveActivityMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsInvite sets a Invite value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsInvite(idx int, v vocab.ActivityStreamsInvite) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsInviteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsJoin sets a Join value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsJoin(idx int, v vocab.ActivityStreamsJoin) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsJoinMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLeave sets a Leave value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsLeave(idx int, v vocab.ActivityStreamsLeave) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsLeaveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLike sets a Like value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsLike(idx int, v vocab.ActivityStreamsLike) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsLikeMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsListen sets a Listen value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsListen(idx int, v vocab.ActivityStreamsListen) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsListenMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMove sets a Move value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsMove(idx int, v vocab.ActivityStreamsMove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsMoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsNote sets a Note value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsNote(idx int, v vocab.ActivityStreamsNote) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsNoteMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsObject sets a Object value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsObject(idx int, v vocab.ActivityStreamsObject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsObjectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOffer sets a Offer value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsOffer(idx int, v vocab.ActivityStreamsOffer) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsOfferMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollection sets a OrderedCollection value to be at the
-// specified index for the property "to". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsOrderedCollection(idx int, v vocab.ActivityStreamsOrderedCollection) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsOrderedCollectionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrderedCollectionPage sets a OrderedCollectionPage value to
-// be at the specified index for the property "to". Panics if the index is out
-// of bounds. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsOrderedCollectionPage(idx int, v vocab.ActivityStreamsOrderedCollectionPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsOrderedCollectionPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsOrganization sets a Organization value to be at the specified
-// index for the property "to". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsOrganization(idx int, v vocab.ActivityStreamsOrganization) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsOrganizationMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPage sets a Page value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsPage(idx int, v vocab.ActivityStreamsPage) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsPageMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPerson sets a Person value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsPerson(idx int, v vocab.ActivityStreamsPerson) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsPersonMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsPlace sets a Place value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsPlace(idx int, v vocab.ActivityStreamsPlace) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsPlaceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsProfile sets a Profile value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsProfile(idx int, v vocab.ActivityStreamsProfile) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsProfileMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsQuestion sets a Question value to be at the specified index
-// for the property "to". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsQuestion(idx int, v vocab.ActivityStreamsQuestion) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsQuestionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRead sets a Read value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsRead(idx int, v vocab.ActivityStreamsRead) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsReadMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsReject sets a Reject value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsReject(idx int, v vocab.ActivityStreamsReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRelationship sets a Relationship value to be at the specified
-// index for the property "to". Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsRelationship(idx int, v vocab.ActivityStreamsRelationship) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsRelationshipMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsRemove sets a Remove value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsRemove(idx int, v vocab.ActivityStreamsRemove) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsRemoveMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsService sets a Service value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsService(idx int, v vocab.ActivityStreamsService) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsServiceMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeAccept sets a TentativeAccept value to be at the
-// specified index for the property "to". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsTentativeAccept(idx int, v vocab.ActivityStreamsTentativeAccept) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsTentativeAcceptMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTentativeReject sets a TentativeReject value to be at the
-// specified index for the property "to". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsTentativeReject(idx int, v vocab.ActivityStreamsTentativeReject) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsTentativeRejectMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTombstone sets a Tombstone value to be at the specified index
-// for the property "to". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsTombstone(idx int, v vocab.ActivityStreamsTombstone) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsTombstoneMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsTravel sets a Travel value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsTravel(idx int, v vocab.ActivityStreamsTravel) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsTravelMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUndo sets a Undo value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsUndo(idx int, v vocab.ActivityStreamsUndo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsUndoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsUpdate sets a Update value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsUpdate(idx int, v vocab.ActivityStreamsUpdate) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsUpdateMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsVideo sets a Video value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsVideo(idx int, v vocab.ActivityStreamsVideo) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsVideoMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsView sets a View value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetActivityStreamsView(idx int, v vocab.ActivityStreamsView) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- activitystreamsViewMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedBranch sets a Branch value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetForgeFedBranch(idx int, v vocab.ForgeFedBranch) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedBranchMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedCommit sets a Commit value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetForgeFedCommit(idx int, v vocab.ForgeFedCommit) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedCommitMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedPush sets a Push value to be at the specified index for the property
-// "to". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetForgeFedPush(idx int, v vocab.ForgeFedPush) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedPushMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedRepository sets a Repository value to be at the specified index for
-// the property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetForgeFedRepository(idx int, v vocab.ForgeFedRepository) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedRepositoryMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicket sets a Ticket value to be at the specified index for the
-// property "to". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsToProperty) SetForgeFedTicket(idx int, v vocab.ForgeFedTicket) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedTicketMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetForgeFedTicketDependency sets a TicketDependency value to be at the
-// specified index for the property "to". Panics if the index is out of
-// bounds. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetForgeFedTicketDependency(idx int, v vocab.ForgeFedTicketDependency) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- forgefedTicketDependencyMember: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "to".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsToProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- iri: v,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetTootEmoji sets a Emoji value to be at the specified index for the property
-// "to". Panics if the index is out of bounds. Invalidates all iterators.
-func (this *ActivityStreamsToProperty) SetTootEmoji(idx int, v vocab.TootEmoji) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootEmojiMember: v,
- }
-}
-
-// SetTootIdentityProof sets a IdentityProof value to be at the specified index
-// for the property "to". Panics if the index is out of bounds. Invalidates
-// all iterators.
-func (this *ActivityStreamsToProperty) SetTootIdentityProof(idx int, v vocab.TootIdentityProof) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- tootIdentityProofMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "to". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsToProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsToPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// Swap swaps the location of values at two indices for the "to" property.
-func (this ActivityStreamsToProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go
deleted file mode 100644
index 96a61b94c..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertytotalitems
-
-import (
- "fmt"
- nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsTotalItemsProperty is the functional property "totalItems". It
-// is permitted to be a single default-valued value type.
-type ActivityStreamsTotalItemsProperty struct {
- xmlschemaNonNegativeIntegerMember int
- hasNonNegativeIntegerMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeTotalItemsProperty creates a "totalItems" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeTotalItemsProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsTotalItemsProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "totalItems"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "totalItems")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsTotalItemsProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil {
- this := &ActivityStreamsTotalItemsProperty{
- alias: alias,
- hasNonNegativeIntegerMember: true,
- xmlschemaNonNegativeIntegerMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsTotalItemsProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsTotalItemsProperty creates a new totalItems property.
-func NewActivityStreamsTotalItemsProperty() *ActivityStreamsTotalItemsProperty {
- return &ActivityStreamsTotalItemsProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling
-// IsXMLSchemaNonNegativeInteger afterwards will return false.
-func (this *ActivityStreamsTotalItemsProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasNonNegativeIntegerMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger
-// returns false, Get will return any arbitrary value.
-func (this ActivityStreamsTotalItemsProperty) Get() int {
- return this.xmlschemaNonNegativeIntegerMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsTotalItemsProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsTotalItemsProperty) HasAny() bool {
- return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsTotalItemsProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an
-// IRI.
-func (this ActivityStreamsTotalItemsProperty) IsXMLSchemaNonNegativeInteger() bool {
- return this.hasNonNegativeIntegerMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsTotalItemsProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsTotalItemsProperty) KindIndex() int {
- if this.IsXMLSchemaNonNegativeInteger() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsTotalItemsProperty) LessThan(o vocab.ActivityStreamsTotalItemsProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "totalItems".
-func (this ActivityStreamsTotalItemsProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "totalItems"
- } else {
- return "totalItems"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsTotalItemsProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaNonNegativeInteger() {
- return nonnegativeinteger.SerializeNonNegativeInteger(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger
-// afterwards will return true.
-func (this *ActivityStreamsTotalItemsProperty) Set(v int) {
- this.Clear()
- this.xmlschemaNonNegativeIntegerMember = v
- this.hasNonNegativeIntegerMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsTotalItemsProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go
deleted file mode 100644
index cd90ad054..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go
+++ /dev/null
@@ -1,215 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyunits
-
-import (
- "fmt"
- anyuri "github.com/go-fed/activity/streams/values/anyURI"
- string1 "github.com/go-fed/activity/streams/values/string"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsUnitsProperty is the functional property "units". It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsUnitsProperty struct {
- xmlschemaStringMember string
- hasStringMember bool
- xmlschemaAnyURIMember *url.URL
- unknown interface{}
- alias string
-}
-
-// DeserializeUnitsProperty creates a "units" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeUnitsProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsUnitsProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "units"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "units")
- }
- i, ok := m[propName]
-
- if ok {
- if v, err := string1.DeserializeString(i); err == nil {
- this := &ActivityStreamsUnitsProperty{
- alias: alias,
- hasStringMember: true,
- xmlschemaStringMember: v,
- }
- return this, nil
- } else if v, err := anyuri.DeserializeAnyURI(i); err == nil {
- this := &ActivityStreamsUnitsProperty{
- alias: alias,
- xmlschemaAnyURIMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsUnitsProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsUnitsProperty creates a new units property.
-func NewActivityStreamsUnitsProperty() *ActivityStreamsUnitsProperty {
- return &ActivityStreamsUnitsProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsUnitsProperty) Clear() {
- this.hasStringMember = false
- this.xmlschemaAnyURIMember = nil
- this.unknown = nil
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsUnitsProperty) GetIRI() *url.URL {
- return this.xmlschemaAnyURIMember
-}
-
-// GetXMLSchemaAnyURI returns the value of this property. When IsXMLSchemaAnyURI
-// returns false, GetXMLSchemaAnyURI will return an arbitrary value.
-func (this ActivityStreamsUnitsProperty) GetXMLSchemaAnyURI() *url.URL {
- return this.xmlschemaAnyURIMember
-}
-
-// GetXMLSchemaString returns the value of this property. When IsXMLSchemaString
-// returns false, GetXMLSchemaString will return an arbitrary value.
-func (this ActivityStreamsUnitsProperty) GetXMLSchemaString() string {
- return this.xmlschemaStringMember
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsUnitsProperty) HasAny() bool {
- return this.IsXMLSchemaString() ||
- this.IsXMLSchemaAnyURI()
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsUnitsProperty) IsIRI() bool {
- return this.xmlschemaAnyURIMember != nil
-}
-
-// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". When
-// true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI methods to access
-// and set this property.
-func (this ActivityStreamsUnitsProperty) IsXMLSchemaAnyURI() bool {
- return this.xmlschemaAnyURIMember != nil
-}
-
-// IsXMLSchemaString returns true if this property has a type of "string". When
-// true, use the GetXMLSchemaString and SetXMLSchemaString methods to access
-// and set this property.
-func (this ActivityStreamsUnitsProperty) IsXMLSchemaString() bool {
- return this.hasStringMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsUnitsProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsUnitsProperty) KindIndex() int {
- if this.IsXMLSchemaString() {
- return 0
- }
- if this.IsXMLSchemaAnyURI() {
- return 1
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsUnitsProperty) LessThan(o vocab.ActivityStreamsUnitsProperty) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsXMLSchemaString() {
- return string1.LessString(this.GetXMLSchemaString(), o.GetXMLSchemaString())
- } else if this.IsXMLSchemaAnyURI() {
- return anyuri.LessAnyURI(this.GetXMLSchemaAnyURI(), o.GetXMLSchemaAnyURI())
- }
- return false
-}
-
-// Name returns the name of this property: "units".
-func (this ActivityStreamsUnitsProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "units"
- } else {
- return "units"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsUnitsProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaString() {
- return string1.SerializeString(this.GetXMLSchemaString())
- } else if this.IsXMLSchemaAnyURI() {
- return anyuri.SerializeAnyURI(this.GetXMLSchemaAnyURI())
- }
- return this.unknown, nil
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsUnitsProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.SetXMLSchemaAnyURI(v)
-}
-
-// SetXMLSchemaAnyURI sets the value of this property. Calling IsXMLSchemaAnyURI
-// afterwards returns true.
-func (this *ActivityStreamsUnitsProperty) SetXMLSchemaAnyURI(v *url.URL) {
- this.Clear()
- this.xmlschemaAnyURIMember = v
-}
-
-// SetXMLSchemaString sets the value of this property. Calling IsXMLSchemaString
-// afterwards returns true.
-func (this *ActivityStreamsUnitsProperty) SetXMLSchemaString(v string) {
- this.Clear()
- this.xmlschemaStringMember = v
- this.hasStringMember = true
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go
deleted file mode 100644
index df7b46b37..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyupdated
-
-import (
- "fmt"
- datetime "github.com/go-fed/activity/streams/values/dateTime"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
- "time"
-)
-
-// ActivityStreamsUpdatedProperty is the functional property "updated". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsUpdatedProperty struct {
- xmlschemaDateTimeMember time.Time
- hasDateTimeMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeUpdatedProperty creates a "updated" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeUpdatedProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsUpdatedProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "updated"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "updated")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsUpdatedProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := datetime.DeserializeDateTime(i); err == nil {
- this := &ActivityStreamsUpdatedProperty{
- alias: alias,
- hasDateTimeMember: true,
- xmlschemaDateTimeMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsUpdatedProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsUpdatedProperty creates a new updated property.
-func NewActivityStreamsUpdatedProperty() *ActivityStreamsUpdatedProperty {
- return &ActivityStreamsUpdatedProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling IsXMLSchemaDateTime
-// afterwards will return false.
-func (this *ActivityStreamsUpdatedProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasDateTimeMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaDateTime returns false,
-// Get will return any arbitrary value.
-func (this ActivityStreamsUpdatedProperty) Get() time.Time {
- return this.xmlschemaDateTimeMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsUpdatedProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsUpdatedProperty) HasAny() bool {
- return this.IsXMLSchemaDateTime() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsUpdatedProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaDateTime returns true if this property is set and not an IRI.
-func (this ActivityStreamsUpdatedProperty) IsXMLSchemaDateTime() bool {
- return this.hasDateTimeMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsUpdatedProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsUpdatedProperty) KindIndex() int {
- if this.IsXMLSchemaDateTime() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsUpdatedProperty) LessThan(o vocab.ActivityStreamsUpdatedProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaDateTime() && !o.IsXMLSchemaDateTime() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaDateTime() && o.IsXMLSchemaDateTime() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return datetime.LessDateTime(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "updated".
-func (this ActivityStreamsUpdatedProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "updated"
- } else {
- return "updated"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsUpdatedProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaDateTime() {
- return datetime.SerializeDateTime(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaDateTime afterwards
-// will return true.
-func (this *ActivityStreamsUpdatedProperty) Set(v time.Time) {
- this.Clear()
- this.xmlschemaDateTimeMember = v
- this.hasDateTimeMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsUpdatedProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_pkg.go
deleted file mode 100644
index 6062eef25..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_pkg.go
+++ /dev/null
@@ -1,26 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyurl
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeLinkActivityStreams returns the deserialization method for
- // the "ActivityStreamsLink" non-functional property in the vocabulary
- // "ActivityStreams"
- DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
- // DeserializeMentionActivityStreams returns the deserialization method
- // for the "ActivityStreamsMention" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go
deleted file mode 100644
index 01ce5b51d..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go
+++ /dev/null
@@ -1,796 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertyurl
-
-import (
- "fmt"
- anyuri "github.com/go-fed/activity/streams/values/anyURI"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsUrlPropertyIterator is an iterator for a property. It is
-// permitted to be one of multiple value types. At most, one type of value can
-// be present, or none at all. Setting a value will clear the other types of
-// values so that only one of the 'Is' methods will return true. It is
-// possible to clear all values, so that this property is empty.
-type ActivityStreamsUrlPropertyIterator struct {
- xmlschemaAnyURIMember *url.URL
- activitystreamsLinkMember vocab.ActivityStreamsLink
- activitystreamsMentionMember vocab.ActivityStreamsMention
- unknown interface{}
- alias string
- myIdx int
- parent vocab.ActivityStreamsUrlProperty
-}
-
-// NewActivityStreamsUrlPropertyIterator creates a new ActivityStreamsUrl property.
-func NewActivityStreamsUrlPropertyIterator() *ActivityStreamsUrlPropertyIterator {
- return &ActivityStreamsUrlPropertyIterator{alias: ""}
-}
-
-// deserializeActivityStreamsUrlPropertyIterator creates an iterator from an
-// element that has been unmarshalled from a text or binary format.
-func deserializeActivityStreamsUrlPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsUrlPropertyIterator, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- if m, ok := i.(map[string]interface{}); ok {
- if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsUrlPropertyIterator{
- activitystreamsLinkMember: v,
- alias: alias,
- }
- return this, nil
- } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
- this := &ActivityStreamsUrlPropertyIterator{
- activitystreamsMentionMember: v,
- alias: alias,
- }
- return this, nil
- }
- }
- if v, err := anyuri.DeserializeAnyURI(i); err == nil {
- this := &ActivityStreamsUrlPropertyIterator{
- alias: alias,
- xmlschemaAnyURIMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsUrlPropertyIterator{
- alias: alias,
- unknown: i,
- }
- return this, nil
-}
-
-// GetActivityStreamsLink returns the value of this property. When
-// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
-// arbitrary value.
-func (this ActivityStreamsUrlPropertyIterator) GetActivityStreamsLink() vocab.ActivityStreamsLink {
- return this.activitystreamsLinkMember
-}
-
-// GetActivityStreamsMention returns the value of this property. When
-// IsActivityStreamsMention returns false, GetActivityStreamsMention will
-// return an arbitrary value.
-func (this ActivityStreamsUrlPropertyIterator) GetActivityStreamsMention() vocab.ActivityStreamsMention {
- return this.activitystreamsMentionMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return an arbitrary value.
-func (this ActivityStreamsUrlPropertyIterator) GetIRI() *url.URL {
- return this.xmlschemaAnyURIMember
-}
-
-// GetType returns the value in this property as a Type. Returns nil if the value
-// is not an ActivityStreams type, such as an IRI or another value.
-func (this ActivityStreamsUrlPropertyIterator) GetType() vocab.Type {
- if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink()
- }
- if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention()
- }
-
- return nil
-}
-
-// GetXMLSchemaAnyURI returns the value of this property. When IsXMLSchemaAnyURI
-// returns false, GetXMLSchemaAnyURI will return an arbitrary value.
-func (this ActivityStreamsUrlPropertyIterator) GetXMLSchemaAnyURI() *url.URL {
- return this.xmlschemaAnyURIMember
-}
-
-// HasAny returns true if any of the different values is set.
-func (this ActivityStreamsUrlPropertyIterator) HasAny() bool {
- return this.IsXMLSchemaAnyURI() ||
- this.IsActivityStreamsLink() ||
- this.IsActivityStreamsMention()
-}
-
-// IsActivityStreamsLink returns true if this property has a type of "Link". When
-// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
-// access and set this property.
-func (this ActivityStreamsUrlPropertyIterator) IsActivityStreamsLink() bool {
- return this.activitystreamsLinkMember != nil
-}
-
-// IsActivityStreamsMention returns true if this property has a type of "Mention".
-// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
-// methods to access and set this property.
-func (this ActivityStreamsUrlPropertyIterator) IsActivityStreamsMention() bool {
- return this.activitystreamsMentionMember != nil
-}
-
-// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
-// to access and set this property
-func (this ActivityStreamsUrlPropertyIterator) IsIRI() bool {
- return this.xmlschemaAnyURIMember != nil
-}
-
-// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". When
-// true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI methods to access
-// and set this property.
-func (this ActivityStreamsUrlPropertyIterator) IsXMLSchemaAnyURI() bool {
- return this.xmlschemaAnyURIMember != nil
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsUrlPropertyIterator) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
- if this.IsActivityStreamsLink() {
- child = this.GetActivityStreamsLink().JSONLDContext()
- } else if this.IsActivityStreamsMention() {
- child = this.GetActivityStreamsMention().JSONLDContext()
- }
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsUrlPropertyIterator) KindIndex() int {
- if this.IsXMLSchemaAnyURI() {
- return 0
- }
- if this.IsActivityStreamsLink() {
- return 1
- }
- if this.IsActivityStreamsMention() {
- return 2
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsUrlPropertyIterator) LessThan(o vocab.ActivityStreamsUrlPropertyIterator) bool {
- idx1 := this.KindIndex()
- idx2 := o.KindIndex()
- if idx1 < idx2 {
- return true
- } else if idx1 > idx2 {
- return false
- } else if this.IsXMLSchemaAnyURI() {
- return anyuri.LessAnyURI(this.GetXMLSchemaAnyURI(), o.GetXMLSchemaAnyURI())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
- }
- return false
-}
-
-// Name returns the name of this property: "ActivityStreamsUrl".
-func (this ActivityStreamsUrlPropertyIterator) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "ActivityStreamsUrl"
- } else {
- return "ActivityStreamsUrl"
- }
-}
-
-// Next returns the next iterator, or nil if there is no next iterator.
-func (this ActivityStreamsUrlPropertyIterator) Next() vocab.ActivityStreamsUrlPropertyIterator {
- if this.myIdx+1 >= this.parent.Len() {
- return nil
- } else {
- return this.parent.At(this.myIdx + 1)
- }
-}
-
-// Prev returns the previous iterator, or nil if there is no previous iterator.
-func (this ActivityStreamsUrlPropertyIterator) Prev() vocab.ActivityStreamsUrlPropertyIterator {
- if this.myIdx-1 < 0 {
- return nil
- } else {
- return this.parent.At(this.myIdx - 1)
- }
-}
-
-// SetActivityStreamsLink sets the value of this property. Calling
-// IsActivityStreamsLink afterwards returns true.
-func (this *ActivityStreamsUrlPropertyIterator) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.clear()
- this.activitystreamsLinkMember = v
-}
-
-// SetActivityStreamsMention sets the value of this property. Calling
-// IsActivityStreamsMention afterwards returns true.
-func (this *ActivityStreamsUrlPropertyIterator) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.clear()
- this.activitystreamsMentionMember = v
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
-func (this *ActivityStreamsUrlPropertyIterator) SetIRI(v *url.URL) {
- this.clear()
- this.SetXMLSchemaAnyURI(v)
-}
-
-// SetType attempts to set the property for the arbitrary type. Returns an error
-// if it is not a valid type to set on this property.
-func (this *ActivityStreamsUrlPropertyIterator) SetType(t vocab.Type) error {
- if v, ok := t.(vocab.ActivityStreamsLink); ok {
- this.SetActivityStreamsLink(v)
- return nil
- }
- if v, ok := t.(vocab.ActivityStreamsMention); ok {
- this.SetActivityStreamsMention(v)
- return nil
- }
-
- return fmt.Errorf("illegal type to set on ActivityStreamsUrl property: %T", t)
-}
-
-// SetXMLSchemaAnyURI sets the value of this property. Calling IsXMLSchemaAnyURI
-// afterwards returns true.
-func (this *ActivityStreamsUrlPropertyIterator) SetXMLSchemaAnyURI(v *url.URL) {
- this.clear()
- this.xmlschemaAnyURIMember = v
-}
-
-// clear ensures no value of this property is set. Calling HasAny or any of the
-// 'Is' methods afterwards will return false.
-func (this *ActivityStreamsUrlPropertyIterator) clear() {
- this.xmlschemaAnyURIMember = nil
- this.activitystreamsLinkMember = nil
- this.activitystreamsMentionMember = nil
- this.unknown = nil
-}
-
-// serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsUrlPropertyIterator) serialize() (interface{}, error) {
- if this.IsXMLSchemaAnyURI() {
- return anyuri.SerializeAnyURI(this.GetXMLSchemaAnyURI())
- } else if this.IsActivityStreamsLink() {
- return this.GetActivityStreamsLink().Serialize()
- } else if this.IsActivityStreamsMention() {
- return this.GetActivityStreamsMention().Serialize()
- }
- return this.unknown, nil
-}
-
-// ActivityStreamsUrlProperty is the non-functional property "url". It is
-// permitted to have one or more values, and of different value types.
-type ActivityStreamsUrlProperty struct {
- properties []*ActivityStreamsUrlPropertyIterator
- alias string
-}
-
-// DeserializeUrlProperty creates a "url" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeUrlProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsUrlProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "url"
- if len(alias) > 0 {
- propName = fmt.Sprintf("%s:%s", alias, "url")
- }
- i, ok := m[propName]
-
- if ok {
- this := &ActivityStreamsUrlProperty{
- alias: alias,
- properties: []*ActivityStreamsUrlPropertyIterator{},
- }
- if list, ok := i.([]interface{}); ok {
- for _, iterator := range list {
- if p, err := deserializeActivityStreamsUrlPropertyIterator(iterator, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- } else {
- if p, err := deserializeActivityStreamsUrlPropertyIterator(i, aliasMap); err != nil {
- return this, err
- } else if p != nil {
- this.properties = append(this.properties, p)
- }
- }
- // Set up the properties for iteration.
- for idx, ele := range this.properties {
- ele.parent = this
- ele.myIdx = idx
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsUrlProperty creates a new url property.
-func NewActivityStreamsUrlProperty() *ActivityStreamsUrlProperty {
- return &ActivityStreamsUrlProperty{alias: ""}
-}
-
-// AppendActivityStreamsLink appends a Link value to the back of a list of the
-// property "url". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsUrlProperty) AppendActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendActivityStreamsMention appends a Mention value to the back of a list of
-// the property "url". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsUrlProperty) AppendActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- })
-}
-
-// AppendIRI appends an IRI value to the back of a list of the property "url"
-func (this *ActivityStreamsUrlProperty) AppendIRI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- xmlschemaAnyURIMember: v,
- })
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "url". Invalidates iterators that are traversing using Prev.
-// Returns an error if the type is not a valid one to set for this property.
-func (this *ActivityStreamsUrlProperty) AppendType(t vocab.Type) error {
- n := &ActivityStreamsUrlPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, n)
- return nil
-}
-
-// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the
-// property "url". Invalidates iterators that are traversing using Prev.
-func (this *ActivityStreamsUrlProperty) AppendXMLSchemaAnyURI(v *url.URL) {
- this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{
- alias: this.alias,
- myIdx: this.Len(),
- parent: this,
- xmlschemaAnyURIMember: v,
- })
-}
-
-// At returns the property value for the specified index. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsUrlProperty) At(index int) vocab.ActivityStreamsUrlPropertyIterator {
- return this.properties[index]
-}
-
-// Begin returns the first iterator, or nil if empty. Can be used with the
-// iterator's Next method and this property's End method to iterate from front
-// to back through all values.
-func (this ActivityStreamsUrlProperty) Begin() vocab.ActivityStreamsUrlPropertyIterator {
- if this.Empty() {
- return nil
- } else {
- return this.properties[0]
- }
-}
-
-// Empty returns returns true if there are no elements.
-func (this ActivityStreamsUrlProperty) Empty() bool {
- return this.Len() == 0
-}
-
-// End returns beyond-the-last iterator, which is nil. Can be used with the
-// iterator's Next method and this property's Begin method to iterate from
-// front to back through all values.
-func (this ActivityStreamsUrlProperty) End() vocab.ActivityStreamsUrlPropertyIterator {
- return nil
-}
-
-// InsertActivityStreamsLink inserts a Link value at the specified index for a
-// property "url". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsUrlProperty) InsertActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsUrlPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// InsertActivityStreamsMention inserts a Mention value at the specified index for
-// a property "url". Existing elements at that index and higher are shifted
-// back once. Invalidates all iterators.
-func (this *ActivityStreamsUrlProperty) InsertActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsUrlPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Insert inserts an IRI value at the specified index for a property "url".
-// Existing elements at that index and higher are shifted back once.
-// Invalidates all iterators.
-func (this *ActivityStreamsUrlProperty) InsertIRI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsUrlPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- xmlschemaAnyURIMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "url". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsUrlProperty) InsertType(idx int, t vocab.Type) error {
- n := &ActivityStreamsUrlPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = n
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a
-// property "url". Existing elements at that index and higher are shifted back
-// once. Invalidates all iterators.
-func (this *ActivityStreamsUrlProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) {
- this.properties = append(this.properties, nil)
- copy(this.properties[idx+1:], this.properties[idx:])
- this.properties[idx] = &ActivityStreamsUrlPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- xmlschemaAnyURIMember: v,
- }
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsUrlProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- for _, elem := range this.properties {
- child := elem.JSONLDContext()
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API method specifically needed only for alternate implementations
-// for go-fed. Applications should not use this method. Panics if the index is
-// out of bounds.
-func (this ActivityStreamsUrlProperty) KindIndex(idx int) int {
- return this.properties[idx].KindIndex()
-}
-
-// Len returns the number of values that exist for the "url" property.
-func (this ActivityStreamsUrlProperty) Len() (length int) {
- return len(this.properties)
-}
-
-// Less computes whether another property is less than this one. Mixing types
-// results in a consistent but arbitrary ordering
-func (this ActivityStreamsUrlProperty) Less(i, j int) bool {
- idx1 := this.KindIndex(i)
- idx2 := this.KindIndex(j)
- if idx1 < idx2 {
- return true
- } else if idx1 == idx2 {
- if idx1 == 0 {
- lhs := this.properties[i].GetXMLSchemaAnyURI()
- rhs := this.properties[j].GetXMLSchemaAnyURI()
- return anyuri.LessAnyURI(lhs, rhs)
- } else if idx1 == 1 {
- lhs := this.properties[i].GetActivityStreamsLink()
- rhs := this.properties[j].GetActivityStreamsLink()
- return lhs.LessThan(rhs)
- } else if idx1 == 2 {
- lhs := this.properties[i].GetActivityStreamsMention()
- rhs := this.properties[j].GetActivityStreamsMention()
- return lhs.LessThan(rhs)
- } else if idx1 == -2 {
- lhs := this.properties[i].GetIRI()
- rhs := this.properties[j].GetIRI()
- return lhs.String() < rhs.String()
- }
- }
- return false
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsUrlProperty) LessThan(o vocab.ActivityStreamsUrlProperty) bool {
- l1 := this.Len()
- l2 := o.Len()
- l := l1
- if l2 < l1 {
- l = l2
- }
- for i := 0; i < l; i++ {
- if this.properties[i].LessThan(o.At(i)) {
- return true
- } else if o.At(i).LessThan(this.properties[i]) {
- return false
- }
- }
- return l1 < l2
-}
-
-// Name returns the name of this property ("url") with any alias.
-func (this ActivityStreamsUrlProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "url"
- } else {
- return "url"
- }
-}
-
-// PrependActivityStreamsLink prepends a Link value to the front of a list of the
-// property "url". Invalidates all iterators.
-func (this *ActivityStreamsUrlProperty) PrependActivityStreamsLink(v vocab.ActivityStreamsLink) {
- this.properties = append([]*ActivityStreamsUrlPropertyIterator{{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependActivityStreamsMention prepends a Mention value to the front of a list
-// of the property "url". Invalidates all iterators.
-func (this *ActivityStreamsUrlProperty) PrependActivityStreamsMention(v vocab.ActivityStreamsMention) {
- this.properties = append([]*ActivityStreamsUrlPropertyIterator{{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependIRI prepends an IRI value to the front of a list of the property "url".
-func (this *ActivityStreamsUrlProperty) PrependIRI(v *url.URL) {
- this.properties = append([]*ActivityStreamsUrlPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- xmlschemaAnyURIMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// PrependType prepends an arbitrary type value to the front of a list of the
-// property "url". Invalidates all iterators. Returns an error if the type is
-// not a valid one to set for this property.
-func (this *ActivityStreamsUrlProperty) PrependType(t vocab.Type) error {
- n := &ActivityStreamsUrlPropertyIterator{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- this.properties = append([]*ActivityStreamsUrlPropertyIterator{n}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
- return nil
-}
-
-// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the
-// property "url". Invalidates all iterators.
-func (this *ActivityStreamsUrlProperty) PrependXMLSchemaAnyURI(v *url.URL) {
- this.properties = append([]*ActivityStreamsUrlPropertyIterator{{
- alias: this.alias,
- myIdx: 0,
- parent: this,
- xmlschemaAnyURIMember: v,
- }}, this.properties...)
- for i := 1; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Remove deletes an element at the specified index from a list of the property
-// "url", regardless of its type. Panics if the index is out of bounds.
-// Invalidates all iterators.
-func (this *ActivityStreamsUrlProperty) Remove(idx int) {
- (this.properties)[idx].parent = nil
- copy((this.properties)[idx:], (this.properties)[idx+1:])
- (this.properties)[len(this.properties)-1] = &ActivityStreamsUrlPropertyIterator{}
- this.properties = (this.properties)[:len(this.properties)-1]
- for i := idx; i < this.Len(); i++ {
- (this.properties)[i].myIdx = i
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsUrlProperty) Serialize() (interface{}, error) {
- s := make([]interface{}, 0, len(this.properties))
- for _, iterator := range this.properties {
- if b, err := iterator.serialize(); err != nil {
- return s, err
- } else {
- s = append(s, b)
- }
- }
- // Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
- if len(s) == 1 {
- return s[0], nil
- }
- return s, nil
-}
-
-// SetActivityStreamsLink sets a Link value to be at the specified index for the
-// property "url". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsUrlProperty) SetActivityStreamsLink(idx int, v vocab.ActivityStreamsLink) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{
- activitystreamsLinkMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetActivityStreamsMention sets a Mention value to be at the specified index for
-// the property "url". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsUrlProperty) SetActivityStreamsMention(idx int, v vocab.ActivityStreamsMention) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{
- activitystreamsMentionMember: v,
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
-}
-
-// SetIRI sets an IRI value to be at the specified index for the property "url".
-// Panics if the index is out of bounds.
-func (this *ActivityStreamsUrlProperty) SetIRI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- xmlschemaAnyURIMember: v,
- }
-}
-
-// SetType sets an arbitrary type value to the specified index of the property
-// "url". Invalidates all iterators. Returns an error if the type is not a
-// valid one to set for this property. Panics if the index is out of bounds.
-func (this *ActivityStreamsUrlProperty) SetType(idx int, t vocab.Type) error {
- n := &ActivityStreamsUrlPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- }
- if err := n.SetType(t); err != nil {
- return err
- }
- (this.properties)[idx] = n
- return nil
-}
-
-// SetXMLSchemaAnyURI sets a anyURI value to be at the specified index for the
-// property "url". Panics if the index is out of bounds. Invalidates all
-// iterators.
-func (this *ActivityStreamsUrlProperty) SetXMLSchemaAnyURI(idx int, v *url.URL) {
- (this.properties)[idx].parent = nil
- (this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{
- alias: this.alias,
- myIdx: idx,
- parent: this,
- xmlschemaAnyURIMember: v,
- }
-}
-
-// Swap swaps the location of values at two indices for the "url" property.
-func (this ActivityStreamsUrlProperty) Swap(i, j int) {
- this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go
deleted file mode 100644
index c03c337c2..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go
+++ /dev/null
@@ -1,204 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package propertywidth
-
-import (
- "fmt"
- nonnegativeinteger "github.com/go-fed/activity/streams/values/nonNegativeInteger"
- vocab "github.com/go-fed/activity/streams/vocab"
- "net/url"
-)
-
-// ActivityStreamsWidthProperty is the functional property "width". It is
-// permitted to be a single default-valued value type.
-type ActivityStreamsWidthProperty struct {
- xmlschemaNonNegativeIntegerMember int
- hasNonNegativeIntegerMember bool
- unknown interface{}
- iri *url.URL
- alias string
-}
-
-// DeserializeWidthProperty creates a "width" property from an interface
-// representation that has been unmarshalled from a text or binary format.
-func DeserializeWidthProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsWidthProperty, error) {
- alias := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- }
- propName := "width"
- if len(alias) > 0 {
- // Use alias both to find the property, and set within the property.
- propName = fmt.Sprintf("%s:%s", alias, "width")
- }
- i, ok := m[propName]
-
- if ok {
- if s, ok := i.(string); ok {
- u, err := url.Parse(s)
- // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
- // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
- if err == nil && len(u.Scheme) > 0 {
- this := &ActivityStreamsWidthProperty{
- alias: alias,
- iri: u,
- }
- return this, nil
- }
- }
- if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil {
- this := &ActivityStreamsWidthProperty{
- alias: alias,
- hasNonNegativeIntegerMember: true,
- xmlschemaNonNegativeIntegerMember: v,
- }
- return this, nil
- }
- this := &ActivityStreamsWidthProperty{
- alias: alias,
- unknown: i,
- }
- return this, nil
- }
- return nil, nil
-}
-
-// NewActivityStreamsWidthProperty creates a new width property.
-func NewActivityStreamsWidthProperty() *ActivityStreamsWidthProperty {
- return &ActivityStreamsWidthProperty{alias: ""}
-}
-
-// Clear ensures no value of this property is set. Calling
-// IsXMLSchemaNonNegativeInteger afterwards will return false.
-func (this *ActivityStreamsWidthProperty) Clear() {
- this.unknown = nil
- this.iri = nil
- this.hasNonNegativeIntegerMember = false
-}
-
-// Get returns the value of this property. When IsXMLSchemaNonNegativeInteger
-// returns false, Get will return any arbitrary value.
-func (this ActivityStreamsWidthProperty) Get() int {
- return this.xmlschemaNonNegativeIntegerMember
-}
-
-// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
-// return any arbitrary value.
-func (this ActivityStreamsWidthProperty) GetIRI() *url.URL {
- return this.iri
-}
-
-// HasAny returns true if the value or IRI is set.
-func (this ActivityStreamsWidthProperty) HasAny() bool {
- return this.IsXMLSchemaNonNegativeInteger() || this.iri != nil
-}
-
-// IsIRI returns true if this property is an IRI.
-func (this ActivityStreamsWidthProperty) IsIRI() bool {
- return this.iri != nil
-}
-
-// IsXMLSchemaNonNegativeInteger returns true if this property is set and not an
-// IRI.
-func (this ActivityStreamsWidthProperty) IsXMLSchemaNonNegativeInteger() bool {
- return this.hasNonNegativeIntegerMember
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// property and the specific values that are set. The value in the map is the
-// alias used to import the property's value or values.
-func (this ActivityStreamsWidthProperty) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- var child map[string]string
-
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- for k, v := range child {
- m[k] = v
- }
- return m
-}
-
-// KindIndex computes an arbitrary value for indexing this kind of value. This is
-// a leaky API detail only for folks looking to replace the go-fed
-// implementation. Applications should not use this method.
-func (this ActivityStreamsWidthProperty) KindIndex() int {
- if this.IsXMLSchemaNonNegativeInteger() {
- return 0
- }
- if this.IsIRI() {
- return -2
- }
- return -1
-}
-
-// LessThan compares two instances of this property with an arbitrary but stable
-// comparison. Applications should not use this because it is only meant to
-// help alternative implementations to go-fed to be able to normalize
-// nonfunctional properties.
-func (this ActivityStreamsWidthProperty) LessThan(o vocab.ActivityStreamsWidthProperty) bool {
- // LessThan comparison for if either or both are IRIs.
- if this.IsIRI() && o.IsIRI() {
- return this.iri.String() < o.GetIRI().String()
- } else if this.IsIRI() {
- // IRIs are always less than other values, none, or unknowns
- return true
- } else if o.IsIRI() {
- // This other, none, or unknown value is always greater than IRIs
- return false
- }
- // LessThan comparison for the single value or unknown value.
- if !this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
- // Both are unknowns.
- return false
- } else if this.IsXMLSchemaNonNegativeInteger() && !o.IsXMLSchemaNonNegativeInteger() {
- // Values are always greater than unknown values.
- return false
- } else if !this.IsXMLSchemaNonNegativeInteger() && o.IsXMLSchemaNonNegativeInteger() {
- // Unknowns are always less than known values.
- return true
- } else {
- // Actual comparison.
- return nonnegativeinteger.LessNonNegativeInteger(this.Get(), o.Get())
- }
-}
-
-// Name returns the name of this property: "width".
-func (this ActivityStreamsWidthProperty) Name() string {
- if len(this.alias) > 0 {
- return this.alias + ":" + "width"
- } else {
- return "width"
- }
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format. Applications should not need this
-// function as most typical use cases serialize types instead of individual
-// properties. It is exposed for alternatives to go-fed implementations to use.
-func (this ActivityStreamsWidthProperty) Serialize() (interface{}, error) {
- if this.IsXMLSchemaNonNegativeInteger() {
- return nonnegativeinteger.SerializeNonNegativeInteger(this.Get())
- } else if this.IsIRI() {
- return this.iri.String(), nil
- }
- return this.unknown, nil
-}
-
-// Set sets the value of this property. Calling IsXMLSchemaNonNegativeInteger
-// afterwards will return true.
-func (this *ActivityStreamsWidthProperty) Set(v int) {
- this.Clear()
- this.xmlschemaNonNegativeIntegerMember = v
- this.hasNonNegativeIntegerMember = true
-}
-
-// SetIRI sets the value of this property. Calling IsIRI afterwards will return
-// true.
-func (this *ActivityStreamsWidthProperty) SetIRI(v *url.URL) {
- this.Clear()
- this.iri = v
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_pkg.go
deleted file mode 100644
index 2068c7d5f..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_pkg.go
+++ /dev/null
@@ -1,207 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeaccept
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeActorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsActorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error)
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeInstrumentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsInstrumentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeObjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsObjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
- // DeserializeOriginPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsOriginProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // DeserializeRepliesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsRepliesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
- // DeserializeResultPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsResultProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTargetPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTargetProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go
deleted file mode 100644
index 2c919e642..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go
+++ /dev/null
@@ -1,1976 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeaccept
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "strings"
-)
-
-// Indicates that the actor accepts the object. The target property can be used in
-// certain circumstances to indicate the context into which the object has
-// been accepted.
-//
-// Example 9 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7a-jsonld):
-// {
-// "actor": {
-// "name": "Sally",
-// "type": "Person"
-// },
-// "object": {
-// "actor": "http://john.example.org",
-// "object": {
-// "name": "Going-Away Party for Jim",
-// "type": "Event"
-// },
-// "type": "Invite"
-// },
-// "summary": "Sally accepted an invitation to a party",
-// "type": "Accept"
-// }
-//
-// Example 10 (https://www.w3.org/TR/activitystreams-vocabulary/#ex7b-jsonld):
-// {
-// "actor": {
-// "name": "Sally",
-// "type": "Person"
-// },
-// "object": {
-// "name": "Joe",
-// "type": "Person"
-// },
-// "summary": "Sally accepted Joe into the club",
-// "target": {
-// "name": "The Club",
-// "type": "Group"
-// },
-// "type": "Accept"
-// }
-type ActivityStreamsAccept struct {
- ActivityStreamsActor vocab.ActivityStreamsActorProperty
- ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
- ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
- ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
- ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
- ActivityStreamsBcc vocab.ActivityStreamsBccProperty
- ActivityStreamsBto vocab.ActivityStreamsBtoProperty
- ActivityStreamsCc vocab.ActivityStreamsCcProperty
- ActivityStreamsContent vocab.ActivityStreamsContentProperty
- ActivityStreamsContext vocab.ActivityStreamsContextProperty
- ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
- ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
- ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
- ActivityStreamsIcon vocab.ActivityStreamsIconProperty
- JSONLDId vocab.JSONLDIdProperty
- ActivityStreamsImage vocab.ActivityStreamsImageProperty
- ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
- ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty
- ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
- ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
- ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
- ActivityStreamsName vocab.ActivityStreamsNameProperty
- ActivityStreamsObject vocab.ActivityStreamsObjectProperty
- ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty
- ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
- ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
- ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
- ActivityStreamsResult vocab.ActivityStreamsResultProperty
- 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{}
-}
-
-// AcceptIsDisjointWith returns true if the other provided type is disjoint with
-// the Accept type.
-func AcceptIsDisjointWith(other vocab.Type) bool {
- disjointWith := []string{"Link", "Mention"}
- for _, disjoint := range disjointWith {
- if disjoint == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// AcceptIsExtendedBy returns true if the other provided type extends from the
-// Accept type. Note that it returns false if the types are the same; see the
-// "IsOrExtendsAccept" variant instead.
-func AcceptIsExtendedBy(other vocab.Type) bool {
- extensions := []string{"TentativeAccept"}
- for _, ext := range extensions {
- if ext == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// ActivityStreamsAcceptExtends returns true if the Accept type extends from the
-// other type.
-func ActivityStreamsAcceptExtends(other vocab.Type) bool {
- extensions := []string{"Activity", "Object"}
- for _, ext := range extensions {
- if ext == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// DeserializeAccept creates a Accept from a map representation that has been
-// unmarshalled from a text or binary format.
-func DeserializeAccept(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAccept, error) {
- alias := ""
- aliasPrefix := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- aliasPrefix = a + ":"
- }
- this := &ActivityStreamsAccept{
- alias: alias,
- unknown: make(map[string]interface{}),
- }
- if typeValue, ok := m["type"]; !ok {
- return nil, fmt.Errorf("no \"type\" property in map")
- } else if typeString, ok := typeValue.(string); ok {
- typeName := strings.TrimPrefix(typeString, aliasPrefix)
- if typeName != "Accept" {
- return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Accept", typeName)
- }
- // Fall through, success in finding a proper Type
- } else if arrType, ok := typeValue.([]interface{}); ok {
- found := false
- for _, elemVal := range arrType {
- if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Accept" {
- found = true
- break
- }
- }
- if !found {
- return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Accept")
- }
- // Fall through, success in finding a proper Type
- } else {
- return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
- }
- // Begin: Known property deserialization
- if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsActor = p
- }
- if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAltitude = p
- }
- if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttachment = p
- }
- if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttributedTo = p
- }
- if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAudience = p
- }
- if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBcc = p
- }
- if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBto = p
- }
- if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsCc = p
- }
- if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContent = p
- }
- if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContext = p
- }
- if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsDuration = p
- }
- if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsEndTime = p
- }
- if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsGenerator = p
- }
- if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsIcon = p
- }
- if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDId = p
- }
- if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsImage = p
- }
- if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInReplyTo = p
- }
- if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInstrument = p
- }
- if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLikes = p
- }
- if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLocation = p
- }
- if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsMediaType = p
- }
- if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsName = p
- }
- if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsObject = p
- }
- if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsOrigin = p
- }
- if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPreview = p
- }
- if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPublished = p
- }
- if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsReplies = p
- }
- if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsResult = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTarget = p
- }
- if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTeam = p
- }
- if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTicketsTrackedBy = p
- }
- if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTo = p
- }
- if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTracksTicketsFor = p
- }
- if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDType = p
- }
- if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsUpdated = p
- }
- if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsUrl = p
- }
- // End: Known property deserialization
-
- // Begin: Unknown deserialization
- for k, v := range m {
- // Begin: Code that ensures a property name is unknown
- if k == "actor" {
- continue
- } else if k == "altitude" {
- continue
- } else if k == "attachment" {
- continue
- } else if k == "attributedTo" {
- continue
- } else if k == "audience" {
- continue
- } else if k == "bcc" {
- continue
- } else if k == "bto" {
- continue
- } else if k == "cc" {
- continue
- } else if k == "content" {
- continue
- } else if k == "contentMap" {
- continue
- } else if k == "context" {
- continue
- } else if k == "duration" {
- continue
- } else if k == "endTime" {
- continue
- } else if k == "generator" {
- continue
- } else if k == "icon" {
- continue
- } else if k == "id" {
- continue
- } else if k == "image" {
- continue
- } else if k == "inReplyTo" {
- continue
- } else if k == "instrument" {
- continue
- } else if k == "likes" {
- continue
- } else if k == "location" {
- continue
- } else if k == "mediaType" {
- continue
- } else if k == "name" {
- continue
- } else if k == "nameMap" {
- continue
- } else if k == "object" {
- continue
- } else if k == "origin" {
- continue
- } else if k == "preview" {
- continue
- } else if k == "published" {
- continue
- } else if k == "replies" {
- continue
- } else if k == "result" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "target" {
- continue
- } else if k == "team" {
- continue
- } else if k == "ticketsTrackedBy" {
- continue
- } else if k == "to" {
- continue
- } else if k == "tracksTicketsFor" {
- continue
- } else if k == "type" {
- continue
- } else if k == "updated" {
- continue
- } else if k == "url" {
- continue
- } // End: Code that ensures a property name is unknown
-
- this.unknown[k] = v
- }
- // End: Unknown deserialization
-
- return this, nil
-}
-
-// IsOrExtendsAccept returns true if the other provided type is the Accept type or
-// extends from the Accept type.
-func IsOrExtendsAccept(other vocab.Type) bool {
- if other.GetTypeName() == "Accept" {
- return true
- }
- return AcceptIsExtendedBy(other)
-}
-
-// NewActivityStreamsAccept creates a new Accept type
-func NewActivityStreamsAccept() *ActivityStreamsAccept {
- typeProp := typePropertyConstructor()
- typeProp.AppendXMLSchemaString("Accept")
- return &ActivityStreamsAccept{
- JSONLDType: typeProp,
- alias: "",
- unknown: make(map[string]interface{}),
- }
-}
-
-// GetActivityStreamsActor returns the "actor" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty {
- return this.ActivityStreamsActor
-}
-
-// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
- return this.ActivityStreamsAltitude
-}
-
-// GetActivityStreamsAttachment returns the "attachment" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty {
- return this.ActivityStreamsAttachment
-}
-
-// GetActivityStreamsAttributedTo returns the "attributedTo" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty {
- return this.ActivityStreamsAttributedTo
-}
-
-// GetActivityStreamsAudience returns the "audience" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty {
- return this.ActivityStreamsAudience
-}
-
-// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty {
- return this.ActivityStreamsBcc
-}
-
-// GetActivityStreamsBto returns the "bto" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty {
- return this.ActivityStreamsBto
-}
-
-// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty {
- return this.ActivityStreamsCc
-}
-
-// GetActivityStreamsContent returns the "content" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty {
- return this.ActivityStreamsContent
-}
-
-// GetActivityStreamsContext returns the "context" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty {
- return this.ActivityStreamsContext
-}
-
-// GetActivityStreamsDuration returns the "duration" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty {
- return this.ActivityStreamsDuration
-}
-
-// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty {
- return this.ActivityStreamsEndTime
-}
-
-// GetActivityStreamsGenerator returns the "generator" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty {
- return this.ActivityStreamsGenerator
-}
-
-// GetActivityStreamsIcon returns the "icon" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty {
- return this.ActivityStreamsIcon
-}
-
-// GetActivityStreamsImage returns the "image" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty {
- return this.ActivityStreamsImage
-}
-
-// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty {
- return this.ActivityStreamsInReplyTo
-}
-
-// GetActivityStreamsInstrument returns the "instrument" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty {
- return this.ActivityStreamsInstrument
-}
-
-// GetActivityStreamsLikes returns the "likes" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty {
- return this.ActivityStreamsLikes
-}
-
-// GetActivityStreamsLocation returns the "location" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty {
- return this.ActivityStreamsLocation
-}
-
-// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
- return this.ActivityStreamsMediaType
-}
-
-// GetActivityStreamsName returns the "name" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
- return this.ActivityStreamsName
-}
-
-// GetActivityStreamsObject returns the "object" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty {
- return this.ActivityStreamsObject
-}
-
-// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty {
- return this.ActivityStreamsOrigin
-}
-
-// GetActivityStreamsPreview returns the "preview" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty {
- return this.ActivityStreamsPreview
-}
-
-// GetActivityStreamsPublished returns the "published" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty {
- return this.ActivityStreamsPublished
-}
-
-// GetActivityStreamsReplies returns the "replies" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty {
- return this.ActivityStreamsReplies
-}
-
-// GetActivityStreamsResult returns the "result" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty {
- return this.ActivityStreamsResult
-}
-
-// GetActivityStreamsShares returns the "shares" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
- return this.ActivityStreamsShares
-}
-
-// GetActivityStreamsSource returns the "source" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty {
- return this.ActivityStreamsSource
-}
-
-// GetActivityStreamsStartTime returns the "startTime" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty {
- return this.ActivityStreamsStartTime
-}
-
-// GetActivityStreamsSummary returns the "summary" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty {
- return this.ActivityStreamsSummary
-}
-
-// GetActivityStreamsTag returns the "tag" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty {
- return this.ActivityStreamsTag
-}
-
-// GetActivityStreamsTarget returns the "target" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty {
- return this.ActivityStreamsTarget
-}
-
-// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsTo() vocab.ActivityStreamsToProperty {
- return this.ActivityStreamsTo
-}
-
-// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty {
- return this.ActivityStreamsUpdated
-}
-
-// GetActivityStreamsUrl returns the "url" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAccept) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty {
- return this.ActivityStreamsUrl
-}
-
-// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise.
-func (this ActivityStreamsAccept) GetForgeFedTeam() vocab.ForgeFedTeamProperty {
- return this.ForgeFedTeam
-}
-
-// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAccept) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty {
- return this.ForgeFedTicketsTrackedBy
-}
-
-// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAccept) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty {
- return this.ForgeFedTracksTicketsFor
-}
-
-// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
-func (this ActivityStreamsAccept) GetJSONLDId() vocab.JSONLDIdProperty {
- return this.JSONLDId
-}
-
-// GetJSONLDType returns the "type" property if it exists, and nil otherwise.
-func (this ActivityStreamsAccept) GetJSONLDType() vocab.JSONLDTypeProperty {
- return this.JSONLDType
-}
-
-// GetTypeName returns the name of this type.
-func (this ActivityStreamsAccept) GetTypeName() string {
- return "Accept"
-}
-
-// GetUnknownProperties returns the unknown properties for the Accept type. Note
-// that this should not be used by app developers. It is only used to help
-// determine which implementation is LessThan the other. Developers who are
-// creating a different implementation of this type's interface can use this
-// method in their LessThan implementation, but routine ActivityPub
-// applications should not use this to bypass the code generation tool.
-func (this ActivityStreamsAccept) GetUnknownProperties() map[string]interface{} {
- return this.unknown
-}
-
-// IsExtending returns true if the Accept type extends from the other type.
-func (this ActivityStreamsAccept) IsExtending(other vocab.Type) bool {
- return ActivityStreamsAcceptExtends(other)
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// type and the specific properties that are set. The value in the map is the
-// alias used to import the type and its properties.
-func (this ActivityStreamsAccept) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- m = this.helperJSONLDContext(this.ActivityStreamsActor, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
- m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContext, m)
- m = this.helperJSONLDContext(this.ActivityStreamsDuration, m)
- m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m)
- m = this.helperJSONLDContext(this.ActivityStreamsIcon, m)
- m = this.helperJSONLDContext(this.JSONLDId, m)
- m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
- m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
- m = this.helperJSONLDContext(this.ActivityStreamsName, m)
- m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
- m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
- m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
- m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
- m = this.helperJSONLDContext(this.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 Accept is lesser, with an arbitrary but stable
-// determination.
-func (this ActivityStreamsAccept) LessThan(o vocab.ActivityStreamsAccept) bool {
- // Begin: Compare known properties
- // Compare property "actor"
- if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "altitude"
- if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attachment"
- if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attributedTo"
- if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "audience"
- if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bcc"
- if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bto"
- if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "cc"
- if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "content"
- if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "context"
- if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "duration"
- if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "endTime"
- if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "generator"
- if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "icon"
- if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "id"
- if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "image"
- if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "inReplyTo"
- if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "instrument"
- if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "likes"
- if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "location"
- if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "mediaType"
- if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "name"
- if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "object"
- if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "origin"
- if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "preview"
- if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "published"
- if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "replies"
- if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "result"
- if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 ActivityStreamsAccept) Serialize() (map[string]interface{}, error) {
- m := make(map[string]interface{})
- typeName := "Accept"
- if len(this.alias) > 0 {
- typeName = this.alias + ":" + "Accept"
- }
- m["type"] = typeName
- // Begin: Serialize known properties
- // Maybe serialize property "actor"
- if this.ActivityStreamsActor != nil {
- if i, err := this.ActivityStreamsActor.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsActor.Name()] = i
- }
- }
- // Maybe serialize property "altitude"
- if this.ActivityStreamsAltitude != nil {
- if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAltitude.Name()] = i
- }
- }
- // Maybe serialize property "attachment"
- if this.ActivityStreamsAttachment != nil {
- if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttachment.Name()] = i
- }
- }
- // Maybe serialize property "attributedTo"
- if this.ActivityStreamsAttributedTo != nil {
- if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttributedTo.Name()] = i
- }
- }
- // Maybe serialize property "audience"
- if this.ActivityStreamsAudience != nil {
- if i, err := this.ActivityStreamsAudience.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAudience.Name()] = i
- }
- }
- // Maybe serialize property "bcc"
- if this.ActivityStreamsBcc != nil {
- if i, err := this.ActivityStreamsBcc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBcc.Name()] = i
- }
- }
- // Maybe serialize property "bto"
- if this.ActivityStreamsBto != nil {
- if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBto.Name()] = i
- }
- }
- // Maybe serialize property "cc"
- if this.ActivityStreamsCc != nil {
- if i, err := this.ActivityStreamsCc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsCc.Name()] = i
- }
- }
- // Maybe serialize property "content"
- if this.ActivityStreamsContent != nil {
- if i, err := this.ActivityStreamsContent.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContent.Name()] = i
- }
- }
- // Maybe serialize property "context"
- if this.ActivityStreamsContext != nil {
- if i, err := this.ActivityStreamsContext.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContext.Name()] = i
- }
- }
- // Maybe serialize property "duration"
- if this.ActivityStreamsDuration != nil {
- if i, err := this.ActivityStreamsDuration.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsDuration.Name()] = i
- }
- }
- // Maybe serialize property "endTime"
- if this.ActivityStreamsEndTime != nil {
- if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsEndTime.Name()] = i
- }
- }
- // Maybe serialize property "generator"
- if this.ActivityStreamsGenerator != nil {
- if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsGenerator.Name()] = i
- }
- }
- // Maybe serialize property "icon"
- if this.ActivityStreamsIcon != nil {
- if i, err := this.ActivityStreamsIcon.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsIcon.Name()] = i
- }
- }
- // Maybe serialize property "id"
- if this.JSONLDId != nil {
- if i, err := this.JSONLDId.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.JSONLDId.Name()] = i
- }
- }
- // Maybe serialize property "image"
- if this.ActivityStreamsImage != nil {
- if i, err := this.ActivityStreamsImage.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsImage.Name()] = i
- }
- }
- // Maybe serialize property "inReplyTo"
- if this.ActivityStreamsInReplyTo != nil {
- if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInReplyTo.Name()] = i
- }
- }
- // Maybe serialize property "instrument"
- if this.ActivityStreamsInstrument != nil {
- if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInstrument.Name()] = i
- }
- }
- // Maybe serialize property "likes"
- if this.ActivityStreamsLikes != nil {
- if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLikes.Name()] = i
- }
- }
- // Maybe serialize property "location"
- if this.ActivityStreamsLocation != nil {
- if i, err := this.ActivityStreamsLocation.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLocation.Name()] = i
- }
- }
- // Maybe serialize property "mediaType"
- if this.ActivityStreamsMediaType != nil {
- if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsMediaType.Name()] = i
- }
- }
- // Maybe serialize property "name"
- if this.ActivityStreamsName != nil {
- if i, err := this.ActivityStreamsName.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsName.Name()] = i
- }
- }
- // Maybe serialize property "object"
- if this.ActivityStreamsObject != nil {
- if i, err := this.ActivityStreamsObject.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsObject.Name()] = i
- }
- }
- // Maybe serialize property "origin"
- if this.ActivityStreamsOrigin != nil {
- if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsOrigin.Name()] = i
- }
- }
- // Maybe serialize property "preview"
- if this.ActivityStreamsPreview != nil {
- if i, err := this.ActivityStreamsPreview.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPreview.Name()] = i
- }
- }
- // Maybe serialize property "published"
- if this.ActivityStreamsPublished != nil {
- if i, err := this.ActivityStreamsPublished.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPublished.Name()] = i
- }
- }
- // Maybe serialize property "replies"
- if this.ActivityStreamsReplies != nil {
- if i, err := this.ActivityStreamsReplies.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsReplies.Name()] = i
- }
- }
- // Maybe serialize property "result"
- if this.ActivityStreamsResult != nil {
- if i, err := this.ActivityStreamsResult.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsResult.Name()] = i
- }
- }
- // Maybe serialize property "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 *ActivityStreamsAccept) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) {
- this.ActivityStreamsActor = i
-}
-
-// SetActivityStreamsAltitude sets the "altitude" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
- this.ActivityStreamsAltitude = i
-}
-
-// SetActivityStreamsAttachment sets the "attachment" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) {
- this.ActivityStreamsAttachment = i
-}
-
-// SetActivityStreamsAttributedTo sets the "attributedTo" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) {
- this.ActivityStreamsAttributedTo = i
-}
-
-// SetActivityStreamsAudience sets the "audience" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) {
- this.ActivityStreamsAudience = i
-}
-
-// SetActivityStreamsBcc sets the "bcc" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) {
- this.ActivityStreamsBcc = i
-}
-
-// SetActivityStreamsBto sets the "bto" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) {
- this.ActivityStreamsBto = i
-}
-
-// SetActivityStreamsCc sets the "cc" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) {
- this.ActivityStreamsCc = i
-}
-
-// SetActivityStreamsContent sets the "content" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) {
- this.ActivityStreamsContent = i
-}
-
-// SetActivityStreamsContext sets the "context" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) {
- this.ActivityStreamsContext = i
-}
-
-// SetActivityStreamsDuration sets the "duration" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) {
- this.ActivityStreamsDuration = i
-}
-
-// SetActivityStreamsEndTime sets the "endTime" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) {
- this.ActivityStreamsEndTime = i
-}
-
-// SetActivityStreamsGenerator sets the "generator" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) {
- this.ActivityStreamsGenerator = i
-}
-
-// SetActivityStreamsIcon sets the "icon" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) {
- this.ActivityStreamsIcon = i
-}
-
-// SetActivityStreamsImage sets the "image" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) {
- this.ActivityStreamsImage = i
-}
-
-// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) {
- this.ActivityStreamsInReplyTo = i
-}
-
-// SetActivityStreamsInstrument sets the "instrument" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) {
- this.ActivityStreamsInstrument = i
-}
-
-// SetActivityStreamsLikes sets the "likes" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) {
- this.ActivityStreamsLikes = i
-}
-
-// SetActivityStreamsLocation sets the "location" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) {
- this.ActivityStreamsLocation = i
-}
-
-// SetActivityStreamsMediaType sets the "mediaType" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
- this.ActivityStreamsMediaType = i
-}
-
-// SetActivityStreamsName sets the "name" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
- this.ActivityStreamsName = i
-}
-
-// SetActivityStreamsObject sets the "object" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) {
- this.ActivityStreamsObject = i
-}
-
-// SetActivityStreamsOrigin sets the "origin" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) {
- this.ActivityStreamsOrigin = i
-}
-
-// SetActivityStreamsPreview sets the "preview" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) {
- this.ActivityStreamsPreview = i
-}
-
-// SetActivityStreamsPublished sets the "published" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) {
- this.ActivityStreamsPublished = i
-}
-
-// SetActivityStreamsReplies sets the "replies" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) {
- this.ActivityStreamsReplies = i
-}
-
-// SetActivityStreamsResult sets the "result" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) {
- this.ActivityStreamsResult = i
-}
-
-// SetActivityStreamsShares sets the "shares" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
- this.ActivityStreamsShares = i
-}
-
-// SetActivityStreamsSource sets the "source" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) {
- this.ActivityStreamsSource = i
-}
-
-// SetActivityStreamsStartTime sets the "startTime" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) {
- this.ActivityStreamsStartTime = i
-}
-
-// SetActivityStreamsSummary sets the "summary" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) {
- this.ActivityStreamsSummary = i
-}
-
-// SetActivityStreamsTag sets the "tag" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) {
- this.ActivityStreamsTag = i
-}
-
-// SetActivityStreamsTarget sets the "target" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) {
- this.ActivityStreamsTarget = i
-}
-
-// SetActivityStreamsTo sets the "to" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) {
- this.ActivityStreamsTo = i
-}
-
-// SetActivityStreamsUpdated sets the "updated" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) {
- this.ActivityStreamsUpdated = i
-}
-
-// SetActivityStreamsUrl sets the "url" property.
-func (this *ActivityStreamsAccept) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) {
- this.ActivityStreamsUrl = i
-}
-
-// SetForgeFedTeam sets the "team" property.
-func (this *ActivityStreamsAccept) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) {
- this.ForgeFedTeam = i
-}
-
-// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property.
-func (this *ActivityStreamsAccept) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) {
- this.ForgeFedTicketsTrackedBy = i
-}
-
-// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property.
-func (this *ActivityStreamsAccept) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) {
- this.ForgeFedTracksTicketsFor = i
-}
-
-// SetJSONLDId sets the "id" property.
-func (this *ActivityStreamsAccept) SetJSONLDId(i vocab.JSONLDIdProperty) {
- this.JSONLDId = i
-}
-
-// SetJSONLDType sets the "type" property.
-func (this *ActivityStreamsAccept) SetJSONLDType(i vocab.JSONLDTypeProperty) {
- this.JSONLDType = i
-}
-
-// VocabularyURI returns the vocabulary's URI as a string.
-func (this ActivityStreamsAccept) VocabularyURI() string {
- return "https://www.w3.org/ns/activitystreams"
-}
-
-// helperJSONLDContext obtains the context uris and their aliases from a property,
-// if it is not nil.
-func (this ActivityStreamsAccept) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string {
- if i == nil {
- return toMerge
- }
- for k, v := range i.JSONLDContext() {
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- toMerge[k] = v
- }
- return toMerge
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_pkg.go
deleted file mode 100644
index 77291a6dd..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_pkg.go
+++ /dev/null
@@ -1,207 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeactivity
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeActorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsActorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error)
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeInstrumentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsInstrumentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeObjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsObjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
- // DeserializeOriginPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsOriginProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // DeserializeRepliesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsRepliesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
- // DeserializeResultPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsResultProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTargetPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTargetProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go
deleted file mode 100644
index 337a5de07..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go
+++ /dev/null
@@ -1,1956 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeactivity
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "strings"
-)
-
-// An Activity is a subtype of Object that describes some form of action that may
-// happen, is currently happening, or has already happened. The Activity type
-// itself serves as an abstract base type for all types of activities. It is
-// important to note that the Activity type itself does not carry any specific
-// semantics about the kind of action being taken.
-//
-// Example 3 (https://www.w3.org/TR/activitystreams-vocabulary/#ex3-jsonld):
-// {
-// "actor": {
-// "name": "Sally",
-// "type": "Person"
-// },
-// "object": {
-// "name": "A Note",
-// "type": "Note"
-// },
-// "summary": "Sally did something to a note",
-// "type": "Activity"
-// }
-type ActivityStreamsActivity struct {
- ActivityStreamsActor vocab.ActivityStreamsActorProperty
- ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
- ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
- ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
- ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
- ActivityStreamsBcc vocab.ActivityStreamsBccProperty
- ActivityStreamsBto vocab.ActivityStreamsBtoProperty
- ActivityStreamsCc vocab.ActivityStreamsCcProperty
- ActivityStreamsContent vocab.ActivityStreamsContentProperty
- ActivityStreamsContext vocab.ActivityStreamsContextProperty
- ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
- ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
- ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
- ActivityStreamsIcon vocab.ActivityStreamsIconProperty
- JSONLDId vocab.JSONLDIdProperty
- ActivityStreamsImage vocab.ActivityStreamsImageProperty
- ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
- ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty
- ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
- ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
- ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
- ActivityStreamsName vocab.ActivityStreamsNameProperty
- ActivityStreamsObject vocab.ActivityStreamsObjectProperty
- ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty
- ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
- ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
- ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
- ActivityStreamsResult vocab.ActivityStreamsResultProperty
- 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{}
-}
-
-// ActivityIsDisjointWith returns true if the other provided type is disjoint with
-// the Activity type.
-func ActivityIsDisjointWith(other vocab.Type) bool {
- disjointWith := []string{"Link", "Mention"}
- for _, disjoint := range disjointWith {
- if disjoint == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// ActivityIsExtendedBy returns true if the other provided type extends from the
-// Activity type. Note that it returns false if the types are the same; see
-// the "IsOrExtendsActivity" variant instead.
-func ActivityIsExtendedBy(other vocab.Type) bool {
- extensions := []string{"Accept", "Add", "Announce", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Offer", "Push", "Question", "Read", "Reject", "Remove", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"}
- for _, ext := range extensions {
- if ext == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// ActivityStreamsActivityExtends returns true if the Activity type extends from
-// the other type.
-func ActivityStreamsActivityExtends(other vocab.Type) bool {
- extensions := []string{"Object"}
- for _, ext := range extensions {
- if ext == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// DeserializeActivity creates a Activity from a map representation that has been
-// unmarshalled from a text or binary format.
-func DeserializeActivity(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsActivity, error) {
- alias := ""
- aliasPrefix := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- aliasPrefix = a + ":"
- }
- this := &ActivityStreamsActivity{
- alias: alias,
- unknown: make(map[string]interface{}),
- }
- if typeValue, ok := m["type"]; !ok {
- return nil, fmt.Errorf("no \"type\" property in map")
- } else if typeString, ok := typeValue.(string); ok {
- typeName := strings.TrimPrefix(typeString, aliasPrefix)
- if typeName != "Activity" {
- return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Activity", typeName)
- }
- // Fall through, success in finding a proper Type
- } else if arrType, ok := typeValue.([]interface{}); ok {
- found := false
- for _, elemVal := range arrType {
- if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Activity" {
- found = true
- break
- }
- }
- if !found {
- return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Activity")
- }
- // Fall through, success in finding a proper Type
- } else {
- return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
- }
- // Begin: Known property deserialization
- if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsActor = p
- }
- if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAltitude = p
- }
- if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttachment = p
- }
- if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttributedTo = p
- }
- if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAudience = p
- }
- if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBcc = p
- }
- if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBto = p
- }
- if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsCc = p
- }
- if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContent = p
- }
- if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContext = p
- }
- if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsDuration = p
- }
- if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsEndTime = p
- }
- if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsGenerator = p
- }
- if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsIcon = p
- }
- if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDId = p
- }
- if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsImage = p
- }
- if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInReplyTo = p
- }
- if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInstrument = p
- }
- if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLikes = p
- }
- if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLocation = p
- }
- if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsMediaType = p
- }
- if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsName = p
- }
- if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsObject = p
- }
- if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsOrigin = p
- }
- if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPreview = p
- }
- if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPublished = p
- }
- if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsReplies = p
- }
- if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsResult = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTarget = p
- }
- if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTeam = p
- }
- if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTicketsTrackedBy = p
- }
- if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTo = p
- }
- if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTracksTicketsFor = p
- }
- if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDType = p
- }
- if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsUpdated = p
- }
- if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsUrl = p
- }
- // End: Known property deserialization
-
- // Begin: Unknown deserialization
- for k, v := range m {
- // Begin: Code that ensures a property name is unknown
- if k == "actor" {
- continue
- } else if k == "altitude" {
- continue
- } else if k == "attachment" {
- continue
- } else if k == "attributedTo" {
- continue
- } else if k == "audience" {
- continue
- } else if k == "bcc" {
- continue
- } else if k == "bto" {
- continue
- } else if k == "cc" {
- continue
- } else if k == "content" {
- continue
- } else if k == "contentMap" {
- continue
- } else if k == "context" {
- continue
- } else if k == "duration" {
- continue
- } else if k == "endTime" {
- continue
- } else if k == "generator" {
- continue
- } else if k == "icon" {
- continue
- } else if k == "id" {
- continue
- } else if k == "image" {
- continue
- } else if k == "inReplyTo" {
- continue
- } else if k == "instrument" {
- continue
- } else if k == "likes" {
- continue
- } else if k == "location" {
- continue
- } else if k == "mediaType" {
- continue
- } else if k == "name" {
- continue
- } else if k == "nameMap" {
- continue
- } else if k == "object" {
- continue
- } else if k == "origin" {
- continue
- } else if k == "preview" {
- continue
- } else if k == "published" {
- continue
- } else if k == "replies" {
- continue
- } else if k == "result" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "target" {
- continue
- } else if k == "team" {
- continue
- } else if k == "ticketsTrackedBy" {
- continue
- } else if k == "to" {
- continue
- } else if k == "tracksTicketsFor" {
- continue
- } else if k == "type" {
- continue
- } else if k == "updated" {
- continue
- } else if k == "url" {
- continue
- } // End: Code that ensures a property name is unknown
-
- this.unknown[k] = v
- }
- // End: Unknown deserialization
-
- return this, nil
-}
-
-// IsOrExtendsActivity returns true if the other provided type is the Activity
-// type or extends from the Activity type.
-func IsOrExtendsActivity(other vocab.Type) bool {
- if other.GetTypeName() == "Activity" {
- return true
- }
- return ActivityIsExtendedBy(other)
-}
-
-// NewActivityStreamsActivity creates a new Activity type
-func NewActivityStreamsActivity() *ActivityStreamsActivity {
- typeProp := typePropertyConstructor()
- typeProp.AppendXMLSchemaString("Activity")
- return &ActivityStreamsActivity{
- JSONLDType: typeProp,
- alias: "",
- unknown: make(map[string]interface{}),
- }
-}
-
-// GetActivityStreamsActor returns the "actor" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty {
- return this.ActivityStreamsActor
-}
-
-// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
- return this.ActivityStreamsAltitude
-}
-
-// GetActivityStreamsAttachment returns the "attachment" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty {
- return this.ActivityStreamsAttachment
-}
-
-// GetActivityStreamsAttributedTo returns the "attributedTo" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty {
- return this.ActivityStreamsAttributedTo
-}
-
-// GetActivityStreamsAudience returns the "audience" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty {
- return this.ActivityStreamsAudience
-}
-
-// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty {
- return this.ActivityStreamsBcc
-}
-
-// GetActivityStreamsBto returns the "bto" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty {
- return this.ActivityStreamsBto
-}
-
-// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty {
- return this.ActivityStreamsCc
-}
-
-// GetActivityStreamsContent returns the "content" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty {
- return this.ActivityStreamsContent
-}
-
-// GetActivityStreamsContext returns the "context" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty {
- return this.ActivityStreamsContext
-}
-
-// GetActivityStreamsDuration returns the "duration" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty {
- return this.ActivityStreamsDuration
-}
-
-// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty {
- return this.ActivityStreamsEndTime
-}
-
-// GetActivityStreamsGenerator returns the "generator" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty {
- return this.ActivityStreamsGenerator
-}
-
-// GetActivityStreamsIcon returns the "icon" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty {
- return this.ActivityStreamsIcon
-}
-
-// GetActivityStreamsImage returns the "image" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty {
- return this.ActivityStreamsImage
-}
-
-// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty {
- return this.ActivityStreamsInReplyTo
-}
-
-// GetActivityStreamsInstrument returns the "instrument" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty {
- return this.ActivityStreamsInstrument
-}
-
-// GetActivityStreamsLikes returns the "likes" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty {
- return this.ActivityStreamsLikes
-}
-
-// GetActivityStreamsLocation returns the "location" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty {
- return this.ActivityStreamsLocation
-}
-
-// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
- return this.ActivityStreamsMediaType
-}
-
-// GetActivityStreamsName returns the "name" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
- return this.ActivityStreamsName
-}
-
-// GetActivityStreamsObject returns the "object" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty {
- return this.ActivityStreamsObject
-}
-
-// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty {
- return this.ActivityStreamsOrigin
-}
-
-// GetActivityStreamsPreview returns the "preview" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty {
- return this.ActivityStreamsPreview
-}
-
-// GetActivityStreamsPublished returns the "published" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty {
- return this.ActivityStreamsPublished
-}
-
-// GetActivityStreamsReplies returns the "replies" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty {
- return this.ActivityStreamsReplies
-}
-
-// GetActivityStreamsResult returns the "result" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty {
- return this.ActivityStreamsResult
-}
-
-// GetActivityStreamsShares returns the "shares" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
- return this.ActivityStreamsShares
-}
-
-// GetActivityStreamsSource returns the "source" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty {
- return this.ActivityStreamsSource
-}
-
-// GetActivityStreamsStartTime returns the "startTime" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty {
- return this.ActivityStreamsStartTime
-}
-
-// GetActivityStreamsSummary returns the "summary" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty {
- return this.ActivityStreamsSummary
-}
-
-// GetActivityStreamsTag returns the "tag" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty {
- return this.ActivityStreamsTag
-}
-
-// GetActivityStreamsTarget returns the "target" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty {
- return this.ActivityStreamsTarget
-}
-
-// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsTo() vocab.ActivityStreamsToProperty {
- return this.ActivityStreamsTo
-}
-
-// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty {
- return this.ActivityStreamsUpdated
-}
-
-// GetActivityStreamsUrl returns the "url" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsActivity) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty {
- return this.ActivityStreamsUrl
-}
-
-// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise.
-func (this ActivityStreamsActivity) GetForgeFedTeam() vocab.ForgeFedTeamProperty {
- return this.ForgeFedTeam
-}
-
-// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsActivity) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty {
- return this.ForgeFedTicketsTrackedBy
-}
-
-// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsActivity) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty {
- return this.ForgeFedTracksTicketsFor
-}
-
-// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
-func (this ActivityStreamsActivity) GetJSONLDId() vocab.JSONLDIdProperty {
- return this.JSONLDId
-}
-
-// GetJSONLDType returns the "type" property if it exists, and nil otherwise.
-func (this ActivityStreamsActivity) GetJSONLDType() vocab.JSONLDTypeProperty {
- return this.JSONLDType
-}
-
-// GetTypeName returns the name of this type.
-func (this ActivityStreamsActivity) GetTypeName() string {
- return "Activity"
-}
-
-// GetUnknownProperties returns the unknown properties for the Activity type. Note
-// that this should not be used by app developers. It is only used to help
-// determine which implementation is LessThan the other. Developers who are
-// creating a different implementation of this type's interface can use this
-// method in their LessThan implementation, but routine ActivityPub
-// applications should not use this to bypass the code generation tool.
-func (this ActivityStreamsActivity) GetUnknownProperties() map[string]interface{} {
- return this.unknown
-}
-
-// IsExtending returns true if the Activity type extends from the other type.
-func (this ActivityStreamsActivity) IsExtending(other vocab.Type) bool {
- return ActivityStreamsActivityExtends(other)
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// type and the specific properties that are set. The value in the map is the
-// alias used to import the type and its properties.
-func (this ActivityStreamsActivity) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- m = this.helperJSONLDContext(this.ActivityStreamsActor, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
- m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContext, m)
- m = this.helperJSONLDContext(this.ActivityStreamsDuration, m)
- m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m)
- m = this.helperJSONLDContext(this.ActivityStreamsIcon, m)
- m = this.helperJSONLDContext(this.JSONLDId, m)
- m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
- m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
- m = this.helperJSONLDContext(this.ActivityStreamsName, m)
- m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
- m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
- m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
- m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
- m = this.helperJSONLDContext(this.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 Activity is lesser, with an arbitrary but stable
-// determination.
-func (this ActivityStreamsActivity) LessThan(o vocab.ActivityStreamsActivity) bool {
- // Begin: Compare known properties
- // Compare property "actor"
- if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "altitude"
- if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attachment"
- if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attributedTo"
- if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "audience"
- if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bcc"
- if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bto"
- if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "cc"
- if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "content"
- if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "context"
- if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "duration"
- if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "endTime"
- if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "generator"
- if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "icon"
- if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "id"
- if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "image"
- if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "inReplyTo"
- if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "instrument"
- if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "likes"
- if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "location"
- if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "mediaType"
- if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "name"
- if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "object"
- if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "origin"
- if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "preview"
- if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "published"
- if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "replies"
- if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "result"
- if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 ActivityStreamsActivity) Serialize() (map[string]interface{}, error) {
- m := make(map[string]interface{})
- typeName := "Activity"
- if len(this.alias) > 0 {
- typeName = this.alias + ":" + "Activity"
- }
- m["type"] = typeName
- // Begin: Serialize known properties
- // Maybe serialize property "actor"
- if this.ActivityStreamsActor != nil {
- if i, err := this.ActivityStreamsActor.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsActor.Name()] = i
- }
- }
- // Maybe serialize property "altitude"
- if this.ActivityStreamsAltitude != nil {
- if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAltitude.Name()] = i
- }
- }
- // Maybe serialize property "attachment"
- if this.ActivityStreamsAttachment != nil {
- if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttachment.Name()] = i
- }
- }
- // Maybe serialize property "attributedTo"
- if this.ActivityStreamsAttributedTo != nil {
- if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttributedTo.Name()] = i
- }
- }
- // Maybe serialize property "audience"
- if this.ActivityStreamsAudience != nil {
- if i, err := this.ActivityStreamsAudience.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAudience.Name()] = i
- }
- }
- // Maybe serialize property "bcc"
- if this.ActivityStreamsBcc != nil {
- if i, err := this.ActivityStreamsBcc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBcc.Name()] = i
- }
- }
- // Maybe serialize property "bto"
- if this.ActivityStreamsBto != nil {
- if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBto.Name()] = i
- }
- }
- // Maybe serialize property "cc"
- if this.ActivityStreamsCc != nil {
- if i, err := this.ActivityStreamsCc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsCc.Name()] = i
- }
- }
- // Maybe serialize property "content"
- if this.ActivityStreamsContent != nil {
- if i, err := this.ActivityStreamsContent.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContent.Name()] = i
- }
- }
- // Maybe serialize property "context"
- if this.ActivityStreamsContext != nil {
- if i, err := this.ActivityStreamsContext.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContext.Name()] = i
- }
- }
- // Maybe serialize property "duration"
- if this.ActivityStreamsDuration != nil {
- if i, err := this.ActivityStreamsDuration.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsDuration.Name()] = i
- }
- }
- // Maybe serialize property "endTime"
- if this.ActivityStreamsEndTime != nil {
- if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsEndTime.Name()] = i
- }
- }
- // Maybe serialize property "generator"
- if this.ActivityStreamsGenerator != nil {
- if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsGenerator.Name()] = i
- }
- }
- // Maybe serialize property "icon"
- if this.ActivityStreamsIcon != nil {
- if i, err := this.ActivityStreamsIcon.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsIcon.Name()] = i
- }
- }
- // Maybe serialize property "id"
- if this.JSONLDId != nil {
- if i, err := this.JSONLDId.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.JSONLDId.Name()] = i
- }
- }
- // Maybe serialize property "image"
- if this.ActivityStreamsImage != nil {
- if i, err := this.ActivityStreamsImage.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsImage.Name()] = i
- }
- }
- // Maybe serialize property "inReplyTo"
- if this.ActivityStreamsInReplyTo != nil {
- if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInReplyTo.Name()] = i
- }
- }
- // Maybe serialize property "instrument"
- if this.ActivityStreamsInstrument != nil {
- if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInstrument.Name()] = i
- }
- }
- // Maybe serialize property "likes"
- if this.ActivityStreamsLikes != nil {
- if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLikes.Name()] = i
- }
- }
- // Maybe serialize property "location"
- if this.ActivityStreamsLocation != nil {
- if i, err := this.ActivityStreamsLocation.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLocation.Name()] = i
- }
- }
- // Maybe serialize property "mediaType"
- if this.ActivityStreamsMediaType != nil {
- if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsMediaType.Name()] = i
- }
- }
- // Maybe serialize property "name"
- if this.ActivityStreamsName != nil {
- if i, err := this.ActivityStreamsName.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsName.Name()] = i
- }
- }
- // Maybe serialize property "object"
- if this.ActivityStreamsObject != nil {
- if i, err := this.ActivityStreamsObject.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsObject.Name()] = i
- }
- }
- // Maybe serialize property "origin"
- if this.ActivityStreamsOrigin != nil {
- if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsOrigin.Name()] = i
- }
- }
- // Maybe serialize property "preview"
- if this.ActivityStreamsPreview != nil {
- if i, err := this.ActivityStreamsPreview.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPreview.Name()] = i
- }
- }
- // Maybe serialize property "published"
- if this.ActivityStreamsPublished != nil {
- if i, err := this.ActivityStreamsPublished.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPublished.Name()] = i
- }
- }
- // Maybe serialize property "replies"
- if this.ActivityStreamsReplies != nil {
- if i, err := this.ActivityStreamsReplies.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsReplies.Name()] = i
- }
- }
- // Maybe serialize property "result"
- if this.ActivityStreamsResult != nil {
- if i, err := this.ActivityStreamsResult.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsResult.Name()] = i
- }
- }
- // Maybe serialize property "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 *ActivityStreamsActivity) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) {
- this.ActivityStreamsActor = i
-}
-
-// SetActivityStreamsAltitude sets the "altitude" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
- this.ActivityStreamsAltitude = i
-}
-
-// SetActivityStreamsAttachment sets the "attachment" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) {
- this.ActivityStreamsAttachment = i
-}
-
-// SetActivityStreamsAttributedTo sets the "attributedTo" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) {
- this.ActivityStreamsAttributedTo = i
-}
-
-// SetActivityStreamsAudience sets the "audience" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) {
- this.ActivityStreamsAudience = i
-}
-
-// SetActivityStreamsBcc sets the "bcc" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) {
- this.ActivityStreamsBcc = i
-}
-
-// SetActivityStreamsBto sets the "bto" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) {
- this.ActivityStreamsBto = i
-}
-
-// SetActivityStreamsCc sets the "cc" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) {
- this.ActivityStreamsCc = i
-}
-
-// SetActivityStreamsContent sets the "content" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) {
- this.ActivityStreamsContent = i
-}
-
-// SetActivityStreamsContext sets the "context" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) {
- this.ActivityStreamsContext = i
-}
-
-// SetActivityStreamsDuration sets the "duration" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) {
- this.ActivityStreamsDuration = i
-}
-
-// SetActivityStreamsEndTime sets the "endTime" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) {
- this.ActivityStreamsEndTime = i
-}
-
-// SetActivityStreamsGenerator sets the "generator" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) {
- this.ActivityStreamsGenerator = i
-}
-
-// SetActivityStreamsIcon sets the "icon" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) {
- this.ActivityStreamsIcon = i
-}
-
-// SetActivityStreamsImage sets the "image" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) {
- this.ActivityStreamsImage = i
-}
-
-// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) {
- this.ActivityStreamsInReplyTo = i
-}
-
-// SetActivityStreamsInstrument sets the "instrument" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) {
- this.ActivityStreamsInstrument = i
-}
-
-// SetActivityStreamsLikes sets the "likes" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) {
- this.ActivityStreamsLikes = i
-}
-
-// SetActivityStreamsLocation sets the "location" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) {
- this.ActivityStreamsLocation = i
-}
-
-// SetActivityStreamsMediaType sets the "mediaType" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
- this.ActivityStreamsMediaType = i
-}
-
-// SetActivityStreamsName sets the "name" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
- this.ActivityStreamsName = i
-}
-
-// SetActivityStreamsObject sets the "object" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) {
- this.ActivityStreamsObject = i
-}
-
-// SetActivityStreamsOrigin sets the "origin" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) {
- this.ActivityStreamsOrigin = i
-}
-
-// SetActivityStreamsPreview sets the "preview" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) {
- this.ActivityStreamsPreview = i
-}
-
-// SetActivityStreamsPublished sets the "published" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) {
- this.ActivityStreamsPublished = i
-}
-
-// SetActivityStreamsReplies sets the "replies" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) {
- this.ActivityStreamsReplies = i
-}
-
-// SetActivityStreamsResult sets the "result" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) {
- this.ActivityStreamsResult = i
-}
-
-// SetActivityStreamsShares sets the "shares" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
- this.ActivityStreamsShares = i
-}
-
-// SetActivityStreamsSource sets the "source" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) {
- this.ActivityStreamsSource = i
-}
-
-// SetActivityStreamsStartTime sets the "startTime" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) {
- this.ActivityStreamsStartTime = i
-}
-
-// SetActivityStreamsSummary sets the "summary" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) {
- this.ActivityStreamsSummary = i
-}
-
-// SetActivityStreamsTag sets the "tag" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) {
- this.ActivityStreamsTag = i
-}
-
-// SetActivityStreamsTarget sets the "target" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) {
- this.ActivityStreamsTarget = i
-}
-
-// SetActivityStreamsTo sets the "to" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) {
- this.ActivityStreamsTo = i
-}
-
-// SetActivityStreamsUpdated sets the "updated" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) {
- this.ActivityStreamsUpdated = i
-}
-
-// SetActivityStreamsUrl sets the "url" property.
-func (this *ActivityStreamsActivity) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) {
- this.ActivityStreamsUrl = i
-}
-
-// SetForgeFedTeam sets the "team" property.
-func (this *ActivityStreamsActivity) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) {
- this.ForgeFedTeam = i
-}
-
-// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property.
-func (this *ActivityStreamsActivity) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) {
- this.ForgeFedTicketsTrackedBy = i
-}
-
-// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property.
-func (this *ActivityStreamsActivity) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) {
- this.ForgeFedTracksTicketsFor = i
-}
-
-// SetJSONLDId sets the "id" property.
-func (this *ActivityStreamsActivity) SetJSONLDId(i vocab.JSONLDIdProperty) {
- this.JSONLDId = i
-}
-
-// SetJSONLDType sets the "type" property.
-func (this *ActivityStreamsActivity) SetJSONLDType(i vocab.JSONLDTypeProperty) {
- this.JSONLDType = i
-}
-
-// VocabularyURI returns the vocabulary's URI as a string.
-func (this ActivityStreamsActivity) VocabularyURI() string {
- return "https://www.w3.org/ns/activitystreams"
-}
-
-// helperJSONLDContext obtains the context uris and their aliases from a property,
-// if it is not nil.
-func (this ActivityStreamsActivity) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string {
- if i == nil {
- return toMerge
- }
- for k, v := range i.JSONLDContext() {
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- toMerge[k] = v
- }
- return toMerge
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_pkg.go
deleted file mode 100644
index 1f6695351..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_pkg.go
+++ /dev/null
@@ -1,207 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeadd
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeActorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsActorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error)
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeInstrumentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsInstrumentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeObjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsObjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
- // DeserializeOriginPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsOriginProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // DeserializeRepliesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsRepliesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
- // DeserializeResultPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsResultProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTargetPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTargetProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go
deleted file mode 100644
index 770a4c13f..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go
+++ /dev/null
@@ -1,1971 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeadd
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "strings"
-)
-
-// Indicates that the actor has added the object to the target. If the target
-// property is not explicitly specified, the target would need to be
-// determined implicitly by context. The origin can be used to identify the
-// context from which the object originated.
-//
-// Example 12 (https://www.w3.org/TR/activitystreams-vocabulary/#ex9-jsonld):
-// {
-// "actor": {
-// "name": "Sally",
-// "type": "Person"
-// },
-// "object": "http://example.org/abc",
-// "summary": "Sally added an object",
-// "type": "Add"
-// }
-//
-// Example 13 (https://www.w3.org/TR/activitystreams-vocabulary/#ex10-jsonld):
-// {
-// "actor": {
-// "name": "Sally",
-// "type": "Person"
-// },
-// "object": {
-// "name": "A picture of my cat",
-// "type": "Image",
-// "url": "http://example.org/img/cat.png"
-// },
-// "origin": {
-// "name": "Camera Roll",
-// "type": "Collection"
-// },
-// "summary": "Sally added a picture of her cat to her cat picture
-// collection",
-// "target": {
-// "name": "My Cat Pictures",
-// "type": "Collection"
-// },
-// "type": "Add"
-// }
-type ActivityStreamsAdd struct {
- ActivityStreamsActor vocab.ActivityStreamsActorProperty
- ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
- ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
- ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
- ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
- ActivityStreamsBcc vocab.ActivityStreamsBccProperty
- ActivityStreamsBto vocab.ActivityStreamsBtoProperty
- ActivityStreamsCc vocab.ActivityStreamsCcProperty
- ActivityStreamsContent vocab.ActivityStreamsContentProperty
- ActivityStreamsContext vocab.ActivityStreamsContextProperty
- ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
- ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
- ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
- ActivityStreamsIcon vocab.ActivityStreamsIconProperty
- JSONLDId vocab.JSONLDIdProperty
- ActivityStreamsImage vocab.ActivityStreamsImageProperty
- ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
- ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty
- ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
- ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
- ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
- ActivityStreamsName vocab.ActivityStreamsNameProperty
- ActivityStreamsObject vocab.ActivityStreamsObjectProperty
- ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty
- ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
- ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
- ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
- ActivityStreamsResult vocab.ActivityStreamsResultProperty
- 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{}
-}
-
-// ActivityStreamsAddExtends returns true if the Add type extends from the other
-// type.
-func ActivityStreamsAddExtends(other vocab.Type) bool {
- extensions := []string{"Activity", "Object"}
- for _, ext := range extensions {
- if ext == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// AddIsDisjointWith returns true if the other provided type is disjoint with the
-// Add type.
-func AddIsDisjointWith(other vocab.Type) bool {
- disjointWith := []string{"Link", "Mention"}
- for _, disjoint := range disjointWith {
- if disjoint == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// AddIsExtendedBy returns true if the other provided type extends from the Add
-// type. Note that it returns false if the types are the same; see the
-// "IsOrExtendsAdd" variant instead.
-func AddIsExtendedBy(other vocab.Type) bool {
- // Shortcut implementation: is not extended by anything.
- return false
-}
-
-// DeserializeAdd creates a Add from a map representation that has been
-// unmarshalled from a text or binary format.
-func DeserializeAdd(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAdd, error) {
- alias := ""
- aliasPrefix := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- aliasPrefix = a + ":"
- }
- this := &ActivityStreamsAdd{
- alias: alias,
- unknown: make(map[string]interface{}),
- }
- if typeValue, ok := m["type"]; !ok {
- return nil, fmt.Errorf("no \"type\" property in map")
- } else if typeString, ok := typeValue.(string); ok {
- typeName := strings.TrimPrefix(typeString, aliasPrefix)
- if typeName != "Add" {
- return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Add", typeName)
- }
- // Fall through, success in finding a proper Type
- } else if arrType, ok := typeValue.([]interface{}); ok {
- found := false
- for _, elemVal := range arrType {
- if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Add" {
- found = true
- break
- }
- }
- if !found {
- return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Add")
- }
- // Fall through, success in finding a proper Type
- } else {
- return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
- }
- // Begin: Known property deserialization
- if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsActor = p
- }
- if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAltitude = p
- }
- if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttachment = p
- }
- if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttributedTo = p
- }
- if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAudience = p
- }
- if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBcc = p
- }
- if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBto = p
- }
- if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsCc = p
- }
- if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContent = p
- }
- if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContext = p
- }
- if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsDuration = p
- }
- if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsEndTime = p
- }
- if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsGenerator = p
- }
- if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsIcon = p
- }
- if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDId = p
- }
- if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsImage = p
- }
- if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInReplyTo = p
- }
- if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInstrument = p
- }
- if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLikes = p
- }
- if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLocation = p
- }
- if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsMediaType = p
- }
- if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsName = p
- }
- if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsObject = p
- }
- if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsOrigin = p
- }
- if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPreview = p
- }
- if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPublished = p
- }
- if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsReplies = p
- }
- if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsResult = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTarget = p
- }
- if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTeam = p
- }
- if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTicketsTrackedBy = p
- }
- if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTo = p
- }
- if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTracksTicketsFor = p
- }
- if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDType = p
- }
- if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsUpdated = p
- }
- if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsUrl = p
- }
- // End: Known property deserialization
-
- // Begin: Unknown deserialization
- for k, v := range m {
- // Begin: Code that ensures a property name is unknown
- if k == "actor" {
- continue
- } else if k == "altitude" {
- continue
- } else if k == "attachment" {
- continue
- } else if k == "attributedTo" {
- continue
- } else if k == "audience" {
- continue
- } else if k == "bcc" {
- continue
- } else if k == "bto" {
- continue
- } else if k == "cc" {
- continue
- } else if k == "content" {
- continue
- } else if k == "contentMap" {
- continue
- } else if k == "context" {
- continue
- } else if k == "duration" {
- continue
- } else if k == "endTime" {
- continue
- } else if k == "generator" {
- continue
- } else if k == "icon" {
- continue
- } else if k == "id" {
- continue
- } else if k == "image" {
- continue
- } else if k == "inReplyTo" {
- continue
- } else if k == "instrument" {
- continue
- } else if k == "likes" {
- continue
- } else if k == "location" {
- continue
- } else if k == "mediaType" {
- continue
- } else if k == "name" {
- continue
- } else if k == "nameMap" {
- continue
- } else if k == "object" {
- continue
- } else if k == "origin" {
- continue
- } else if k == "preview" {
- continue
- } else if k == "published" {
- continue
- } else if k == "replies" {
- continue
- } else if k == "result" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "target" {
- continue
- } else if k == "team" {
- continue
- } else if k == "ticketsTrackedBy" {
- continue
- } else if k == "to" {
- continue
- } else if k == "tracksTicketsFor" {
- continue
- } else if k == "type" {
- continue
- } else if k == "updated" {
- continue
- } else if k == "url" {
- continue
- } // End: Code that ensures a property name is unknown
-
- this.unknown[k] = v
- }
- // End: Unknown deserialization
-
- return this, nil
-}
-
-// IsOrExtendsAdd returns true if the other provided type is the Add type or
-// extends from the Add type.
-func IsOrExtendsAdd(other vocab.Type) bool {
- if other.GetTypeName() == "Add" {
- return true
- }
- return AddIsExtendedBy(other)
-}
-
-// NewActivityStreamsAdd creates a new Add type
-func NewActivityStreamsAdd() *ActivityStreamsAdd {
- typeProp := typePropertyConstructor()
- typeProp.AppendXMLSchemaString("Add")
- return &ActivityStreamsAdd{
- JSONLDType: typeProp,
- alias: "",
- unknown: make(map[string]interface{}),
- }
-}
-
-// GetActivityStreamsActor returns the "actor" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty {
- return this.ActivityStreamsActor
-}
-
-// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
- return this.ActivityStreamsAltitude
-}
-
-// GetActivityStreamsAttachment returns the "attachment" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty {
- return this.ActivityStreamsAttachment
-}
-
-// GetActivityStreamsAttributedTo returns the "attributedTo" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty {
- return this.ActivityStreamsAttributedTo
-}
-
-// GetActivityStreamsAudience returns the "audience" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty {
- return this.ActivityStreamsAudience
-}
-
-// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty {
- return this.ActivityStreamsBcc
-}
-
-// GetActivityStreamsBto returns the "bto" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty {
- return this.ActivityStreamsBto
-}
-
-// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty {
- return this.ActivityStreamsCc
-}
-
-// GetActivityStreamsContent returns the "content" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty {
- return this.ActivityStreamsContent
-}
-
-// GetActivityStreamsContext returns the "context" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty {
- return this.ActivityStreamsContext
-}
-
-// GetActivityStreamsDuration returns the "duration" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty {
- return this.ActivityStreamsDuration
-}
-
-// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty {
- return this.ActivityStreamsEndTime
-}
-
-// GetActivityStreamsGenerator returns the "generator" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty {
- return this.ActivityStreamsGenerator
-}
-
-// GetActivityStreamsIcon returns the "icon" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty {
- return this.ActivityStreamsIcon
-}
-
-// GetActivityStreamsImage returns the "image" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty {
- return this.ActivityStreamsImage
-}
-
-// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty {
- return this.ActivityStreamsInReplyTo
-}
-
-// GetActivityStreamsInstrument returns the "instrument" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty {
- return this.ActivityStreamsInstrument
-}
-
-// GetActivityStreamsLikes returns the "likes" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty {
- return this.ActivityStreamsLikes
-}
-
-// GetActivityStreamsLocation returns the "location" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty {
- return this.ActivityStreamsLocation
-}
-
-// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
- return this.ActivityStreamsMediaType
-}
-
-// GetActivityStreamsName returns the "name" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
- return this.ActivityStreamsName
-}
-
-// GetActivityStreamsObject returns the "object" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty {
- return this.ActivityStreamsObject
-}
-
-// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty {
- return this.ActivityStreamsOrigin
-}
-
-// GetActivityStreamsPreview returns the "preview" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty {
- return this.ActivityStreamsPreview
-}
-
-// GetActivityStreamsPublished returns the "published" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty {
- return this.ActivityStreamsPublished
-}
-
-// GetActivityStreamsReplies returns the "replies" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty {
- return this.ActivityStreamsReplies
-}
-
-// GetActivityStreamsResult returns the "result" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty {
- return this.ActivityStreamsResult
-}
-
-// GetActivityStreamsShares returns the "shares" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
- return this.ActivityStreamsShares
-}
-
-// GetActivityStreamsSource returns the "source" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty {
- return this.ActivityStreamsSource
-}
-
-// GetActivityStreamsStartTime returns the "startTime" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty {
- return this.ActivityStreamsStartTime
-}
-
-// GetActivityStreamsSummary returns the "summary" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty {
- return this.ActivityStreamsSummary
-}
-
-// GetActivityStreamsTag returns the "tag" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty {
- return this.ActivityStreamsTag
-}
-
-// GetActivityStreamsTarget returns the "target" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty {
- return this.ActivityStreamsTarget
-}
-
-// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsTo() vocab.ActivityStreamsToProperty {
- return this.ActivityStreamsTo
-}
-
-// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty {
- return this.ActivityStreamsUpdated
-}
-
-// GetActivityStreamsUrl returns the "url" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAdd) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty {
- return this.ActivityStreamsUrl
-}
-
-// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise.
-func (this ActivityStreamsAdd) GetForgeFedTeam() vocab.ForgeFedTeamProperty {
- return this.ForgeFedTeam
-}
-
-// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAdd) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty {
- return this.ForgeFedTicketsTrackedBy
-}
-
-// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAdd) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty {
- return this.ForgeFedTracksTicketsFor
-}
-
-// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
-func (this ActivityStreamsAdd) GetJSONLDId() vocab.JSONLDIdProperty {
- return this.JSONLDId
-}
-
-// GetJSONLDType returns the "type" property if it exists, and nil otherwise.
-func (this ActivityStreamsAdd) GetJSONLDType() vocab.JSONLDTypeProperty {
- return this.JSONLDType
-}
-
-// GetTypeName returns the name of this type.
-func (this ActivityStreamsAdd) GetTypeName() string {
- return "Add"
-}
-
-// GetUnknownProperties returns the unknown properties for the Add type. Note that
-// this should not be used by app developers. It is only used to help
-// determine which implementation is LessThan the other. Developers who are
-// creating a different implementation of this type's interface can use this
-// method in their LessThan implementation, but routine ActivityPub
-// applications should not use this to bypass the code generation tool.
-func (this ActivityStreamsAdd) GetUnknownProperties() map[string]interface{} {
- return this.unknown
-}
-
-// IsExtending returns true if the Add type extends from the other type.
-func (this ActivityStreamsAdd) IsExtending(other vocab.Type) bool {
- return ActivityStreamsAddExtends(other)
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// type and the specific properties that are set. The value in the map is the
-// alias used to import the type and its properties.
-func (this ActivityStreamsAdd) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- m = this.helperJSONLDContext(this.ActivityStreamsActor, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
- m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContext, m)
- m = this.helperJSONLDContext(this.ActivityStreamsDuration, m)
- m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m)
- m = this.helperJSONLDContext(this.ActivityStreamsIcon, m)
- m = this.helperJSONLDContext(this.JSONLDId, m)
- m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
- m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
- m = this.helperJSONLDContext(this.ActivityStreamsName, m)
- m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
- m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
- m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
- m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
- m = this.helperJSONLDContext(this.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 Add is lesser, with an arbitrary but stable
-// determination.
-func (this ActivityStreamsAdd) LessThan(o vocab.ActivityStreamsAdd) bool {
- // Begin: Compare known properties
- // Compare property "actor"
- if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "altitude"
- if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attachment"
- if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attributedTo"
- if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "audience"
- if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bcc"
- if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bto"
- if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "cc"
- if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "content"
- if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "context"
- if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "duration"
- if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "endTime"
- if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "generator"
- if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "icon"
- if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "id"
- if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "image"
- if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "inReplyTo"
- if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "instrument"
- if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "likes"
- if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "location"
- if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "mediaType"
- if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "name"
- if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "object"
- if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "origin"
- if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "preview"
- if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "published"
- if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "replies"
- if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "result"
- if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 ActivityStreamsAdd) Serialize() (map[string]interface{}, error) {
- m := make(map[string]interface{})
- typeName := "Add"
- if len(this.alias) > 0 {
- typeName = this.alias + ":" + "Add"
- }
- m["type"] = typeName
- // Begin: Serialize known properties
- // Maybe serialize property "actor"
- if this.ActivityStreamsActor != nil {
- if i, err := this.ActivityStreamsActor.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsActor.Name()] = i
- }
- }
- // Maybe serialize property "altitude"
- if this.ActivityStreamsAltitude != nil {
- if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAltitude.Name()] = i
- }
- }
- // Maybe serialize property "attachment"
- if this.ActivityStreamsAttachment != nil {
- if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttachment.Name()] = i
- }
- }
- // Maybe serialize property "attributedTo"
- if this.ActivityStreamsAttributedTo != nil {
- if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttributedTo.Name()] = i
- }
- }
- // Maybe serialize property "audience"
- if this.ActivityStreamsAudience != nil {
- if i, err := this.ActivityStreamsAudience.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAudience.Name()] = i
- }
- }
- // Maybe serialize property "bcc"
- if this.ActivityStreamsBcc != nil {
- if i, err := this.ActivityStreamsBcc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBcc.Name()] = i
- }
- }
- // Maybe serialize property "bto"
- if this.ActivityStreamsBto != nil {
- if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBto.Name()] = i
- }
- }
- // Maybe serialize property "cc"
- if this.ActivityStreamsCc != nil {
- if i, err := this.ActivityStreamsCc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsCc.Name()] = i
- }
- }
- // Maybe serialize property "content"
- if this.ActivityStreamsContent != nil {
- if i, err := this.ActivityStreamsContent.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContent.Name()] = i
- }
- }
- // Maybe serialize property "context"
- if this.ActivityStreamsContext != nil {
- if i, err := this.ActivityStreamsContext.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContext.Name()] = i
- }
- }
- // Maybe serialize property "duration"
- if this.ActivityStreamsDuration != nil {
- if i, err := this.ActivityStreamsDuration.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsDuration.Name()] = i
- }
- }
- // Maybe serialize property "endTime"
- if this.ActivityStreamsEndTime != nil {
- if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsEndTime.Name()] = i
- }
- }
- // Maybe serialize property "generator"
- if this.ActivityStreamsGenerator != nil {
- if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsGenerator.Name()] = i
- }
- }
- // Maybe serialize property "icon"
- if this.ActivityStreamsIcon != nil {
- if i, err := this.ActivityStreamsIcon.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsIcon.Name()] = i
- }
- }
- // Maybe serialize property "id"
- if this.JSONLDId != nil {
- if i, err := this.JSONLDId.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.JSONLDId.Name()] = i
- }
- }
- // Maybe serialize property "image"
- if this.ActivityStreamsImage != nil {
- if i, err := this.ActivityStreamsImage.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsImage.Name()] = i
- }
- }
- // Maybe serialize property "inReplyTo"
- if this.ActivityStreamsInReplyTo != nil {
- if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInReplyTo.Name()] = i
- }
- }
- // Maybe serialize property "instrument"
- if this.ActivityStreamsInstrument != nil {
- if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInstrument.Name()] = i
- }
- }
- // Maybe serialize property "likes"
- if this.ActivityStreamsLikes != nil {
- if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLikes.Name()] = i
- }
- }
- // Maybe serialize property "location"
- if this.ActivityStreamsLocation != nil {
- if i, err := this.ActivityStreamsLocation.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLocation.Name()] = i
- }
- }
- // Maybe serialize property "mediaType"
- if this.ActivityStreamsMediaType != nil {
- if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsMediaType.Name()] = i
- }
- }
- // Maybe serialize property "name"
- if this.ActivityStreamsName != nil {
- if i, err := this.ActivityStreamsName.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsName.Name()] = i
- }
- }
- // Maybe serialize property "object"
- if this.ActivityStreamsObject != nil {
- if i, err := this.ActivityStreamsObject.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsObject.Name()] = i
- }
- }
- // Maybe serialize property "origin"
- if this.ActivityStreamsOrigin != nil {
- if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsOrigin.Name()] = i
- }
- }
- // Maybe serialize property "preview"
- if this.ActivityStreamsPreview != nil {
- if i, err := this.ActivityStreamsPreview.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPreview.Name()] = i
- }
- }
- // Maybe serialize property "published"
- if this.ActivityStreamsPublished != nil {
- if i, err := this.ActivityStreamsPublished.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPublished.Name()] = i
- }
- }
- // Maybe serialize property "replies"
- if this.ActivityStreamsReplies != nil {
- if i, err := this.ActivityStreamsReplies.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsReplies.Name()] = i
- }
- }
- // Maybe serialize property "result"
- if this.ActivityStreamsResult != nil {
- if i, err := this.ActivityStreamsResult.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsResult.Name()] = i
- }
- }
- // Maybe serialize property "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 *ActivityStreamsAdd) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) {
- this.ActivityStreamsActor = i
-}
-
-// SetActivityStreamsAltitude sets the "altitude" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
- this.ActivityStreamsAltitude = i
-}
-
-// SetActivityStreamsAttachment sets the "attachment" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) {
- this.ActivityStreamsAttachment = i
-}
-
-// SetActivityStreamsAttributedTo sets the "attributedTo" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) {
- this.ActivityStreamsAttributedTo = i
-}
-
-// SetActivityStreamsAudience sets the "audience" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) {
- this.ActivityStreamsAudience = i
-}
-
-// SetActivityStreamsBcc sets the "bcc" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) {
- this.ActivityStreamsBcc = i
-}
-
-// SetActivityStreamsBto sets the "bto" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) {
- this.ActivityStreamsBto = i
-}
-
-// SetActivityStreamsCc sets the "cc" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) {
- this.ActivityStreamsCc = i
-}
-
-// SetActivityStreamsContent sets the "content" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) {
- this.ActivityStreamsContent = i
-}
-
-// SetActivityStreamsContext sets the "context" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) {
- this.ActivityStreamsContext = i
-}
-
-// SetActivityStreamsDuration sets the "duration" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) {
- this.ActivityStreamsDuration = i
-}
-
-// SetActivityStreamsEndTime sets the "endTime" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) {
- this.ActivityStreamsEndTime = i
-}
-
-// SetActivityStreamsGenerator sets the "generator" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) {
- this.ActivityStreamsGenerator = i
-}
-
-// SetActivityStreamsIcon sets the "icon" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) {
- this.ActivityStreamsIcon = i
-}
-
-// SetActivityStreamsImage sets the "image" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) {
- this.ActivityStreamsImage = i
-}
-
-// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) {
- this.ActivityStreamsInReplyTo = i
-}
-
-// SetActivityStreamsInstrument sets the "instrument" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) {
- this.ActivityStreamsInstrument = i
-}
-
-// SetActivityStreamsLikes sets the "likes" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) {
- this.ActivityStreamsLikes = i
-}
-
-// SetActivityStreamsLocation sets the "location" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) {
- this.ActivityStreamsLocation = i
-}
-
-// SetActivityStreamsMediaType sets the "mediaType" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
- this.ActivityStreamsMediaType = i
-}
-
-// SetActivityStreamsName sets the "name" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
- this.ActivityStreamsName = i
-}
-
-// SetActivityStreamsObject sets the "object" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) {
- this.ActivityStreamsObject = i
-}
-
-// SetActivityStreamsOrigin sets the "origin" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) {
- this.ActivityStreamsOrigin = i
-}
-
-// SetActivityStreamsPreview sets the "preview" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) {
- this.ActivityStreamsPreview = i
-}
-
-// SetActivityStreamsPublished sets the "published" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) {
- this.ActivityStreamsPublished = i
-}
-
-// SetActivityStreamsReplies sets the "replies" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) {
- this.ActivityStreamsReplies = i
-}
-
-// SetActivityStreamsResult sets the "result" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) {
- this.ActivityStreamsResult = i
-}
-
-// SetActivityStreamsShares sets the "shares" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
- this.ActivityStreamsShares = i
-}
-
-// SetActivityStreamsSource sets the "source" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) {
- this.ActivityStreamsSource = i
-}
-
-// SetActivityStreamsStartTime sets the "startTime" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) {
- this.ActivityStreamsStartTime = i
-}
-
-// SetActivityStreamsSummary sets the "summary" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) {
- this.ActivityStreamsSummary = i
-}
-
-// SetActivityStreamsTag sets the "tag" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) {
- this.ActivityStreamsTag = i
-}
-
-// SetActivityStreamsTarget sets the "target" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) {
- this.ActivityStreamsTarget = i
-}
-
-// SetActivityStreamsTo sets the "to" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) {
- this.ActivityStreamsTo = i
-}
-
-// SetActivityStreamsUpdated sets the "updated" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) {
- this.ActivityStreamsUpdated = i
-}
-
-// SetActivityStreamsUrl sets the "url" property.
-func (this *ActivityStreamsAdd) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) {
- this.ActivityStreamsUrl = i
-}
-
-// SetForgeFedTeam sets the "team" property.
-func (this *ActivityStreamsAdd) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) {
- this.ForgeFedTeam = i
-}
-
-// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property.
-func (this *ActivityStreamsAdd) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) {
- this.ForgeFedTicketsTrackedBy = i
-}
-
-// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property.
-func (this *ActivityStreamsAdd) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) {
- this.ForgeFedTracksTicketsFor = i
-}
-
-// SetJSONLDId sets the "id" property.
-func (this *ActivityStreamsAdd) SetJSONLDId(i vocab.JSONLDIdProperty) {
- this.JSONLDId = i
-}
-
-// SetJSONLDType sets the "type" property.
-func (this *ActivityStreamsAdd) SetJSONLDType(i vocab.JSONLDTypeProperty) {
- this.JSONLDType = i
-}
-
-// VocabularyURI returns the vocabulary's URI as a string.
-func (this ActivityStreamsAdd) VocabularyURI() string {
- return "https://www.w3.org/ns/activitystreams"
-}
-
-// helperJSONLDContext obtains the context uris and their aliases from a property,
-// if it is not nil.
-func (this ActivityStreamsAdd) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string {
- if i == nil {
- return toMerge
- }
- for k, v := range i.JSONLDContext() {
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- toMerge[k] = v
- }
- return toMerge
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_pkg.go
deleted file mode 100644
index 626354eb2..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_pkg.go
+++ /dev/null
@@ -1,207 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeannounce
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeActorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsActorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error)
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeInstrumentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsInstrumentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeObjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsObjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
- // DeserializeOriginPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsOriginProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // DeserializeRepliesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsRepliesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
- // DeserializeResultPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsResultProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTargetPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTargetProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go
deleted file mode 100644
index 761e3ef5a..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go
+++ /dev/null
@@ -1,1953 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeannounce
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "strings"
-)
-
-// Indicates that the actor is calling the target's attention the object. The
-// origin typically has no defined meaning.
-//
-// Example 36 (https://www.w3.org/TR/activitystreams-vocabulary/#ex170-jsonld):
-// {
-// "actor": {
-// "id": "http://sally.example.org",
-// "name": "Sally",
-// "type": "Person"
-// },
-// "object": {
-// "actor": "http://sally.example.org",
-// "location": {
-// "name": "Work",
-// "type": "Place"
-// },
-// "type": "Arrive"
-// },
-// "summary": "Sally announced that she had arrived at work",
-// "type": "Announce"
-// }
-type ActivityStreamsAnnounce struct {
- ActivityStreamsActor vocab.ActivityStreamsActorProperty
- ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
- ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
- ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
- ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
- ActivityStreamsBcc vocab.ActivityStreamsBccProperty
- ActivityStreamsBto vocab.ActivityStreamsBtoProperty
- ActivityStreamsCc vocab.ActivityStreamsCcProperty
- ActivityStreamsContent vocab.ActivityStreamsContentProperty
- ActivityStreamsContext vocab.ActivityStreamsContextProperty
- ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
- ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
- ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
- ActivityStreamsIcon vocab.ActivityStreamsIconProperty
- JSONLDId vocab.JSONLDIdProperty
- ActivityStreamsImage vocab.ActivityStreamsImageProperty
- ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
- ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty
- ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
- ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
- ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
- ActivityStreamsName vocab.ActivityStreamsNameProperty
- ActivityStreamsObject vocab.ActivityStreamsObjectProperty
- ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty
- ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
- ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
- ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
- ActivityStreamsResult vocab.ActivityStreamsResultProperty
- ActivityStreamsShares vocab.ActivityStreamsSharesProperty
- ActivityStreamsSource vocab.ActivityStreamsSourceProperty
- ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
- ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty
- ActivityStreamsTag vocab.ActivityStreamsTagProperty
- ActivityStreamsTarget vocab.ActivityStreamsTargetProperty
- ForgeFedTeam vocab.ForgeFedTeamProperty
- ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty
- ActivityStreamsTo vocab.ActivityStreamsToProperty
- ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty
- JSONLDType vocab.JSONLDTypeProperty
- ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty
- ActivityStreamsUrl vocab.ActivityStreamsUrlProperty
- alias string
- unknown map[string]interface{}
-}
-
-// ActivityStreamsAnnounceExtends returns true if the Announce type extends from
-// the other type.
-func ActivityStreamsAnnounceExtends(other vocab.Type) bool {
- extensions := []string{"Activity", "Object"}
- for _, ext := range extensions {
- if ext == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// AnnounceIsDisjointWith returns true if the other provided type is disjoint with
-// the Announce type.
-func AnnounceIsDisjointWith(other vocab.Type) bool {
- disjointWith := []string{"Link", "Mention"}
- for _, disjoint := range disjointWith {
- if disjoint == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// AnnounceIsExtendedBy returns true if the other provided type extends from the
-// Announce type. Note that it returns false if the types are the same; see
-// the "IsOrExtendsAnnounce" variant instead.
-func AnnounceIsExtendedBy(other vocab.Type) bool {
- // Shortcut implementation: is not extended by anything.
- return false
-}
-
-// DeserializeAnnounce creates a Announce from a map representation that has been
-// unmarshalled from a text or binary format.
-func DeserializeAnnounce(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAnnounce, error) {
- alias := ""
- aliasPrefix := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- aliasPrefix = a + ":"
- }
- this := &ActivityStreamsAnnounce{
- alias: alias,
- unknown: make(map[string]interface{}),
- }
- if typeValue, ok := m["type"]; !ok {
- return nil, fmt.Errorf("no \"type\" property in map")
- } else if typeString, ok := typeValue.(string); ok {
- typeName := strings.TrimPrefix(typeString, aliasPrefix)
- if typeName != "Announce" {
- return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Announce", typeName)
- }
- // Fall through, success in finding a proper Type
- } else if arrType, ok := typeValue.([]interface{}); ok {
- found := false
- for _, elemVal := range arrType {
- if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Announce" {
- found = true
- break
- }
- }
- if !found {
- return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Announce")
- }
- // Fall through, success in finding a proper Type
- } else {
- return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
- }
- // Begin: Known property deserialization
- if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsActor = p
- }
- if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAltitude = p
- }
- if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttachment = p
- }
- if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttributedTo = p
- }
- if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAudience = p
- }
- if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBcc = p
- }
- if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBto = p
- }
- if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsCc = p
- }
- if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContent = p
- }
- if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContext = p
- }
- if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsDuration = p
- }
- if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsEndTime = p
- }
- if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsGenerator = p
- }
- if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsIcon = p
- }
- if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDId = p
- }
- if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsImage = p
- }
- if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInReplyTo = p
- }
- if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInstrument = p
- }
- if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLikes = p
- }
- if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLocation = p
- }
- if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsMediaType = p
- }
- if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsName = p
- }
- if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsObject = p
- }
- if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsOrigin = p
- }
- if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPreview = p
- }
- if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPublished = p
- }
- if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsReplies = p
- }
- if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsResult = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTarget = p
- }
- if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTeam = p
- }
- if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTicketsTrackedBy = p
- }
- if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTo = p
- }
- if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTracksTicketsFor = p
- }
- if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDType = p
- }
- if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsUpdated = p
- }
- if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsUrl = p
- }
- // End: Known property deserialization
-
- // Begin: Unknown deserialization
- for k, v := range m {
- // Begin: Code that ensures a property name is unknown
- if k == "actor" {
- continue
- } else if k == "altitude" {
- continue
- } else if k == "attachment" {
- continue
- } else if k == "attributedTo" {
- continue
- } else if k == "audience" {
- continue
- } else if k == "bcc" {
- continue
- } else if k == "bto" {
- continue
- } else if k == "cc" {
- continue
- } else if k == "content" {
- continue
- } else if k == "contentMap" {
- continue
- } else if k == "context" {
- continue
- } else if k == "duration" {
- continue
- } else if k == "endTime" {
- continue
- } else if k == "generator" {
- continue
- } else if k == "icon" {
- continue
- } else if k == "id" {
- continue
- } else if k == "image" {
- continue
- } else if k == "inReplyTo" {
- continue
- } else if k == "instrument" {
- continue
- } else if k == "likes" {
- continue
- } else if k == "location" {
- continue
- } else if k == "mediaType" {
- continue
- } else if k == "name" {
- continue
- } else if k == "nameMap" {
- continue
- } else if k == "object" {
- continue
- } else if k == "origin" {
- continue
- } else if k == "preview" {
- continue
- } else if k == "published" {
- continue
- } else if k == "replies" {
- continue
- } else if k == "result" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "target" {
- continue
- } else if k == "team" {
- continue
- } else if k == "ticketsTrackedBy" {
- continue
- } else if k == "to" {
- continue
- } else if k == "tracksTicketsFor" {
- continue
- } else if k == "type" {
- continue
- } else if k == "updated" {
- continue
- } else if k == "url" {
- continue
- } // End: Code that ensures a property name is unknown
-
- this.unknown[k] = v
- }
- // End: Unknown deserialization
-
- return this, nil
-}
-
-// IsOrExtendsAnnounce returns true if the other provided type is the Announce
-// type or extends from the Announce type.
-func IsOrExtendsAnnounce(other vocab.Type) bool {
- if other.GetTypeName() == "Announce" {
- return true
- }
- return AnnounceIsExtendedBy(other)
-}
-
-// NewActivityStreamsAnnounce creates a new Announce type
-func NewActivityStreamsAnnounce() *ActivityStreamsAnnounce {
- typeProp := typePropertyConstructor()
- typeProp.AppendXMLSchemaString("Announce")
- return &ActivityStreamsAnnounce{
- JSONLDType: typeProp,
- alias: "",
- unknown: make(map[string]interface{}),
- }
-}
-
-// GetActivityStreamsActor returns the "actor" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty {
- return this.ActivityStreamsActor
-}
-
-// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
- return this.ActivityStreamsAltitude
-}
-
-// GetActivityStreamsAttachment returns the "attachment" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty {
- return this.ActivityStreamsAttachment
-}
-
-// GetActivityStreamsAttributedTo returns the "attributedTo" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty {
- return this.ActivityStreamsAttributedTo
-}
-
-// GetActivityStreamsAudience returns the "audience" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty {
- return this.ActivityStreamsAudience
-}
-
-// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty {
- return this.ActivityStreamsBcc
-}
-
-// GetActivityStreamsBto returns the "bto" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty {
- return this.ActivityStreamsBto
-}
-
-// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty {
- return this.ActivityStreamsCc
-}
-
-// GetActivityStreamsContent returns the "content" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty {
- return this.ActivityStreamsContent
-}
-
-// GetActivityStreamsContext returns the "context" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty {
- return this.ActivityStreamsContext
-}
-
-// GetActivityStreamsDuration returns the "duration" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty {
- return this.ActivityStreamsDuration
-}
-
-// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty {
- return this.ActivityStreamsEndTime
-}
-
-// GetActivityStreamsGenerator returns the "generator" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty {
- return this.ActivityStreamsGenerator
-}
-
-// GetActivityStreamsIcon returns the "icon" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty {
- return this.ActivityStreamsIcon
-}
-
-// GetActivityStreamsImage returns the "image" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty {
- return this.ActivityStreamsImage
-}
-
-// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty {
- return this.ActivityStreamsInReplyTo
-}
-
-// GetActivityStreamsInstrument returns the "instrument" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty {
- return this.ActivityStreamsInstrument
-}
-
-// GetActivityStreamsLikes returns the "likes" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty {
- return this.ActivityStreamsLikes
-}
-
-// GetActivityStreamsLocation returns the "location" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty {
- return this.ActivityStreamsLocation
-}
-
-// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
- return this.ActivityStreamsMediaType
-}
-
-// GetActivityStreamsName returns the "name" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
- return this.ActivityStreamsName
-}
-
-// GetActivityStreamsObject returns the "object" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty {
- return this.ActivityStreamsObject
-}
-
-// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty {
- return this.ActivityStreamsOrigin
-}
-
-// GetActivityStreamsPreview returns the "preview" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty {
- return this.ActivityStreamsPreview
-}
-
-// GetActivityStreamsPublished returns the "published" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty {
- return this.ActivityStreamsPublished
-}
-
-// GetActivityStreamsReplies returns the "replies" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty {
- return this.ActivityStreamsReplies
-}
-
-// GetActivityStreamsResult returns the "result" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty {
- return this.ActivityStreamsResult
-}
-
-// GetActivityStreamsShares returns the "shares" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
- return this.ActivityStreamsShares
-}
-
-// GetActivityStreamsSource returns the "source" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty {
- return this.ActivityStreamsSource
-}
-
-// GetActivityStreamsStartTime returns the "startTime" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty {
- return this.ActivityStreamsStartTime
-}
-
-// GetActivityStreamsSummary returns the "summary" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty {
- return this.ActivityStreamsSummary
-}
-
-// GetActivityStreamsTag returns the "tag" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty {
- return this.ActivityStreamsTag
-}
-
-// GetActivityStreamsTarget returns the "target" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty {
- return this.ActivityStreamsTarget
-}
-
-// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsTo() vocab.ActivityStreamsToProperty {
- return this.ActivityStreamsTo
-}
-
-// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty {
- return this.ActivityStreamsUpdated
-}
-
-// GetActivityStreamsUrl returns the "url" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAnnounce) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty {
- return this.ActivityStreamsUrl
-}
-
-// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise.
-func (this ActivityStreamsAnnounce) GetForgeFedTeam() vocab.ForgeFedTeamProperty {
- return this.ForgeFedTeam
-}
-
-// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAnnounce) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty {
- return this.ForgeFedTicketsTrackedBy
-}
-
-// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAnnounce) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty {
- return this.ForgeFedTracksTicketsFor
-}
-
-// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
-func (this ActivityStreamsAnnounce) GetJSONLDId() vocab.JSONLDIdProperty {
- return this.JSONLDId
-}
-
-// GetJSONLDType returns the "type" property if it exists, and nil otherwise.
-func (this ActivityStreamsAnnounce) GetJSONLDType() vocab.JSONLDTypeProperty {
- return this.JSONLDType
-}
-
-// GetTypeName returns the name of this type.
-func (this ActivityStreamsAnnounce) GetTypeName() string {
- return "Announce"
-}
-
-// GetUnknownProperties returns the unknown properties for the Announce type. Note
-// that this should not be used by app developers. It is only used to help
-// determine which implementation is LessThan the other. Developers who are
-// creating a different implementation of this type's interface can use this
-// method in their LessThan implementation, but routine ActivityPub
-// applications should not use this to bypass the code generation tool.
-func (this ActivityStreamsAnnounce) GetUnknownProperties() map[string]interface{} {
- return this.unknown
-}
-
-// IsExtending returns true if the Announce type extends from the other type.
-func (this ActivityStreamsAnnounce) IsExtending(other vocab.Type) bool {
- return ActivityStreamsAnnounceExtends(other)
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// type and the specific properties that are set. The value in the map is the
-// alias used to import the type and its properties.
-func (this ActivityStreamsAnnounce) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- m = this.helperJSONLDContext(this.ActivityStreamsActor, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
- m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContext, m)
- m = this.helperJSONLDContext(this.ActivityStreamsDuration, m)
- m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m)
- m = this.helperJSONLDContext(this.ActivityStreamsIcon, m)
- m = this.helperJSONLDContext(this.JSONLDId, m)
- m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
- m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
- m = this.helperJSONLDContext(this.ActivityStreamsName, m)
- m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
- m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
- m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
- m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
- m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
- m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSummary, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTag, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTarget, m)
- m = this.helperJSONLDContext(this.ForgeFedTeam, m)
- m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTo, m)
- m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m)
- m = this.helperJSONLDContext(this.JSONLDType, m)
- m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m)
- m = this.helperJSONLDContext(this.ActivityStreamsUrl, m)
-
- return m
-}
-
-// LessThan computes if this Announce is lesser, with an arbitrary but stable
-// determination.
-func (this ActivityStreamsAnnounce) LessThan(o vocab.ActivityStreamsAnnounce) bool {
- // Begin: Compare known properties
- // Compare property "actor"
- if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "altitude"
- if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attachment"
- if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attributedTo"
- if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "audience"
- if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bcc"
- if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bto"
- if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "cc"
- if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "content"
- if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "context"
- if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "duration"
- if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "endTime"
- if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "generator"
- if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "icon"
- if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "id"
- if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "image"
- if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "inReplyTo"
- if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "instrument"
- if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "likes"
- if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "location"
- if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "mediaType"
- if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "name"
- if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "object"
- if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "origin"
- if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "preview"
- if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "published"
- if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "replies"
- if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "result"
- if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "shares"
- if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "source"
- if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "startTime"
- if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "summary"
- if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tag"
- if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "target"
- if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "team"
- if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "ticketsTrackedBy"
- if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "to"
- if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tracksTicketsFor"
- if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "type"
- if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "updated"
- if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "url"
- if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // End: Compare known properties
-
- // Begin: Compare unknown properties (only by number of them)
- if len(this.unknown) < len(o.GetUnknownProperties()) {
- return true
- } else if len(o.GetUnknownProperties()) < len(this.unknown) {
- return false
- } // End: Compare unknown properties (only by number of them)
-
- // All properties are the same.
- return false
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format.
-func (this ActivityStreamsAnnounce) Serialize() (map[string]interface{}, error) {
- m := make(map[string]interface{})
- typeName := "Announce"
- if len(this.alias) > 0 {
- typeName = this.alias + ":" + "Announce"
- }
- m["type"] = typeName
- // Begin: Serialize known properties
- // Maybe serialize property "actor"
- if this.ActivityStreamsActor != nil {
- if i, err := this.ActivityStreamsActor.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsActor.Name()] = i
- }
- }
- // Maybe serialize property "altitude"
- if this.ActivityStreamsAltitude != nil {
- if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAltitude.Name()] = i
- }
- }
- // Maybe serialize property "attachment"
- if this.ActivityStreamsAttachment != nil {
- if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttachment.Name()] = i
- }
- }
- // Maybe serialize property "attributedTo"
- if this.ActivityStreamsAttributedTo != nil {
- if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttributedTo.Name()] = i
- }
- }
- // Maybe serialize property "audience"
- if this.ActivityStreamsAudience != nil {
- if i, err := this.ActivityStreamsAudience.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAudience.Name()] = i
- }
- }
- // Maybe serialize property "bcc"
- if this.ActivityStreamsBcc != nil {
- if i, err := this.ActivityStreamsBcc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBcc.Name()] = i
- }
- }
- // Maybe serialize property "bto"
- if this.ActivityStreamsBto != nil {
- if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBto.Name()] = i
- }
- }
- // Maybe serialize property "cc"
- if this.ActivityStreamsCc != nil {
- if i, err := this.ActivityStreamsCc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsCc.Name()] = i
- }
- }
- // Maybe serialize property "content"
- if this.ActivityStreamsContent != nil {
- if i, err := this.ActivityStreamsContent.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContent.Name()] = i
- }
- }
- // Maybe serialize property "context"
- if this.ActivityStreamsContext != nil {
- if i, err := this.ActivityStreamsContext.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContext.Name()] = i
- }
- }
- // Maybe serialize property "duration"
- if this.ActivityStreamsDuration != nil {
- if i, err := this.ActivityStreamsDuration.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsDuration.Name()] = i
- }
- }
- // Maybe serialize property "endTime"
- if this.ActivityStreamsEndTime != nil {
- if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsEndTime.Name()] = i
- }
- }
- // Maybe serialize property "generator"
- if this.ActivityStreamsGenerator != nil {
- if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsGenerator.Name()] = i
- }
- }
- // Maybe serialize property "icon"
- if this.ActivityStreamsIcon != nil {
- if i, err := this.ActivityStreamsIcon.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsIcon.Name()] = i
- }
- }
- // Maybe serialize property "id"
- if this.JSONLDId != nil {
- if i, err := this.JSONLDId.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.JSONLDId.Name()] = i
- }
- }
- // Maybe serialize property "image"
- if this.ActivityStreamsImage != nil {
- if i, err := this.ActivityStreamsImage.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsImage.Name()] = i
- }
- }
- // Maybe serialize property "inReplyTo"
- if this.ActivityStreamsInReplyTo != nil {
- if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInReplyTo.Name()] = i
- }
- }
- // Maybe serialize property "instrument"
- if this.ActivityStreamsInstrument != nil {
- if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInstrument.Name()] = i
- }
- }
- // Maybe serialize property "likes"
- if this.ActivityStreamsLikes != nil {
- if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLikes.Name()] = i
- }
- }
- // Maybe serialize property "location"
- if this.ActivityStreamsLocation != nil {
- if i, err := this.ActivityStreamsLocation.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLocation.Name()] = i
- }
- }
- // Maybe serialize property "mediaType"
- if this.ActivityStreamsMediaType != nil {
- if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsMediaType.Name()] = i
- }
- }
- // Maybe serialize property "name"
- if this.ActivityStreamsName != nil {
- if i, err := this.ActivityStreamsName.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsName.Name()] = i
- }
- }
- // Maybe serialize property "object"
- if this.ActivityStreamsObject != nil {
- if i, err := this.ActivityStreamsObject.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsObject.Name()] = i
- }
- }
- // Maybe serialize property "origin"
- if this.ActivityStreamsOrigin != nil {
- if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsOrigin.Name()] = i
- }
- }
- // Maybe serialize property "preview"
- if this.ActivityStreamsPreview != nil {
- if i, err := this.ActivityStreamsPreview.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPreview.Name()] = i
- }
- }
- // Maybe serialize property "published"
- if this.ActivityStreamsPublished != nil {
- if i, err := this.ActivityStreamsPublished.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPublished.Name()] = i
- }
- }
- // Maybe serialize property "replies"
- if this.ActivityStreamsReplies != nil {
- if i, err := this.ActivityStreamsReplies.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsReplies.Name()] = i
- }
- }
- // Maybe serialize property "result"
- if this.ActivityStreamsResult != nil {
- if i, err := this.ActivityStreamsResult.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsResult.Name()] = i
- }
- }
- // Maybe serialize property "shares"
- if this.ActivityStreamsShares != nil {
- if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsShares.Name()] = i
- }
- }
- // Maybe serialize property "source"
- if this.ActivityStreamsSource != nil {
- if i, err := this.ActivityStreamsSource.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSource.Name()] = i
- }
- }
- // Maybe serialize property "startTime"
- if this.ActivityStreamsStartTime != nil {
- if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsStartTime.Name()] = i
- }
- }
- // Maybe serialize property "summary"
- if this.ActivityStreamsSummary != nil {
- if i, err := this.ActivityStreamsSummary.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSummary.Name()] = i
- }
- }
- // Maybe serialize property "tag"
- if this.ActivityStreamsTag != nil {
- if i, err := this.ActivityStreamsTag.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTag.Name()] = i
- }
- }
- // Maybe serialize property "target"
- if this.ActivityStreamsTarget != nil {
- if i, err := this.ActivityStreamsTarget.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTarget.Name()] = i
- }
- }
- // Maybe serialize property "team"
- if this.ForgeFedTeam != nil {
- if i, err := this.ForgeFedTeam.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ForgeFedTeam.Name()] = i
- }
- }
- // Maybe serialize property "ticketsTrackedBy"
- if this.ForgeFedTicketsTrackedBy != nil {
- if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ForgeFedTicketsTrackedBy.Name()] = i
- }
- }
- // Maybe serialize property "to"
- if this.ActivityStreamsTo != nil {
- if i, err := this.ActivityStreamsTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTo.Name()] = i
- }
- }
- // Maybe serialize property "tracksTicketsFor"
- if this.ForgeFedTracksTicketsFor != nil {
- if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ForgeFedTracksTicketsFor.Name()] = i
- }
- }
- // Maybe serialize property "type"
- if this.JSONLDType != nil {
- if i, err := this.JSONLDType.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.JSONLDType.Name()] = i
- }
- }
- // Maybe serialize property "updated"
- if this.ActivityStreamsUpdated != nil {
- if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsUpdated.Name()] = i
- }
- }
- // Maybe serialize property "url"
- if this.ActivityStreamsUrl != nil {
- if i, err := this.ActivityStreamsUrl.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsUrl.Name()] = i
- }
- }
- // End: Serialize known properties
-
- // Begin: Serialize unknown properties
- for k, v := range this.unknown {
- // To be safe, ensure we aren't overwriting a known property
- if _, has := m[k]; !has {
- m[k] = v
- }
- }
- // End: Serialize unknown properties
-
- return m, nil
-}
-
-// SetActivityStreamsActor sets the "actor" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) {
- this.ActivityStreamsActor = i
-}
-
-// SetActivityStreamsAltitude sets the "altitude" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
- this.ActivityStreamsAltitude = i
-}
-
-// SetActivityStreamsAttachment sets the "attachment" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) {
- this.ActivityStreamsAttachment = i
-}
-
-// SetActivityStreamsAttributedTo sets the "attributedTo" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) {
- this.ActivityStreamsAttributedTo = i
-}
-
-// SetActivityStreamsAudience sets the "audience" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) {
- this.ActivityStreamsAudience = i
-}
-
-// SetActivityStreamsBcc sets the "bcc" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) {
- this.ActivityStreamsBcc = i
-}
-
-// SetActivityStreamsBto sets the "bto" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) {
- this.ActivityStreamsBto = i
-}
-
-// SetActivityStreamsCc sets the "cc" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) {
- this.ActivityStreamsCc = i
-}
-
-// SetActivityStreamsContent sets the "content" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) {
- this.ActivityStreamsContent = i
-}
-
-// SetActivityStreamsContext sets the "context" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) {
- this.ActivityStreamsContext = i
-}
-
-// SetActivityStreamsDuration sets the "duration" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) {
- this.ActivityStreamsDuration = i
-}
-
-// SetActivityStreamsEndTime sets the "endTime" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) {
- this.ActivityStreamsEndTime = i
-}
-
-// SetActivityStreamsGenerator sets the "generator" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) {
- this.ActivityStreamsGenerator = i
-}
-
-// SetActivityStreamsIcon sets the "icon" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) {
- this.ActivityStreamsIcon = i
-}
-
-// SetActivityStreamsImage sets the "image" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) {
- this.ActivityStreamsImage = i
-}
-
-// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) {
- this.ActivityStreamsInReplyTo = i
-}
-
-// SetActivityStreamsInstrument sets the "instrument" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) {
- this.ActivityStreamsInstrument = i
-}
-
-// SetActivityStreamsLikes sets the "likes" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) {
- this.ActivityStreamsLikes = i
-}
-
-// SetActivityStreamsLocation sets the "location" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) {
- this.ActivityStreamsLocation = i
-}
-
-// SetActivityStreamsMediaType sets the "mediaType" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
- this.ActivityStreamsMediaType = i
-}
-
-// SetActivityStreamsName sets the "name" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
- this.ActivityStreamsName = i
-}
-
-// SetActivityStreamsObject sets the "object" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) {
- this.ActivityStreamsObject = i
-}
-
-// SetActivityStreamsOrigin sets the "origin" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) {
- this.ActivityStreamsOrigin = i
-}
-
-// SetActivityStreamsPreview sets the "preview" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) {
- this.ActivityStreamsPreview = i
-}
-
-// SetActivityStreamsPublished sets the "published" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) {
- this.ActivityStreamsPublished = i
-}
-
-// SetActivityStreamsReplies sets the "replies" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) {
- this.ActivityStreamsReplies = i
-}
-
-// SetActivityStreamsResult sets the "result" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) {
- this.ActivityStreamsResult = i
-}
-
-// SetActivityStreamsShares sets the "shares" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
- this.ActivityStreamsShares = i
-}
-
-// SetActivityStreamsSource sets the "source" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) {
- this.ActivityStreamsSource = i
-}
-
-// SetActivityStreamsStartTime sets the "startTime" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) {
- this.ActivityStreamsStartTime = i
-}
-
-// SetActivityStreamsSummary sets the "summary" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) {
- this.ActivityStreamsSummary = i
-}
-
-// SetActivityStreamsTag sets the "tag" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) {
- this.ActivityStreamsTag = i
-}
-
-// SetActivityStreamsTarget sets the "target" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) {
- this.ActivityStreamsTarget = i
-}
-
-// SetActivityStreamsTo sets the "to" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) {
- this.ActivityStreamsTo = i
-}
-
-// SetActivityStreamsUpdated sets the "updated" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) {
- this.ActivityStreamsUpdated = i
-}
-
-// SetActivityStreamsUrl sets the "url" property.
-func (this *ActivityStreamsAnnounce) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) {
- this.ActivityStreamsUrl = i
-}
-
-// SetForgeFedTeam sets the "team" property.
-func (this *ActivityStreamsAnnounce) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) {
- this.ForgeFedTeam = i
-}
-
-// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property.
-func (this *ActivityStreamsAnnounce) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) {
- this.ForgeFedTicketsTrackedBy = i
-}
-
-// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property.
-func (this *ActivityStreamsAnnounce) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) {
- this.ForgeFedTracksTicketsFor = i
-}
-
-// SetJSONLDId sets the "id" property.
-func (this *ActivityStreamsAnnounce) SetJSONLDId(i vocab.JSONLDIdProperty) {
- this.JSONLDId = i
-}
-
-// SetJSONLDType sets the "type" property.
-func (this *ActivityStreamsAnnounce) SetJSONLDType(i vocab.JSONLDTypeProperty) {
- this.JSONLDType = i
-}
-
-// VocabularyURI returns the vocabulary's URI as a string.
-func (this ActivityStreamsAnnounce) VocabularyURI() string {
- return "https://www.w3.org/ns/activitystreams"
-}
-
-// helperJSONLDContext obtains the context uris and their aliases from a property,
-// if it is not nil.
-func (this ActivityStreamsAnnounce) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string {
- if i == nil {
- return toMerge
- }
- for k, v := range i.JSONLDContext() {
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- toMerge[k] = v
- }
- return toMerge
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go
deleted file mode 100644
index 05764bc36..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go
+++ /dev/null
@@ -1,233 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeapplication
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDiscoverablePropertyToot returns the deserialization method
- // for the "TootDiscoverableProperty" non-functional property in the
- // vocabulary "Toot"
- DeserializeDiscoverablePropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootDiscoverableProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeFeaturedPropertyToot returns the deserialization method for
- // the "TootFeaturedProperty" non-functional property in the
- // vocabulary "Toot"
- DeserializeFeaturedPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootFeaturedProperty, error)
- // DeserializeFollowersPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsFollowersProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowersProperty, error)
- // DeserializeFollowingPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsFollowingProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeFollowingPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollowingProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeInboxPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInboxProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInboxProperty, error)
- // DeserializeLikedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikedProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsManuallyApprovesFollowersProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeObjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsObjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
- // DeserializeOutboxPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsOutboxProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOutboxPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOutboxProperty, error)
- // DeserializePreferredUsernamePropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsPreferredUsernameProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializePreferredUsernamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreferredUsernameProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublicKeyPropertyW3IDSecurityV1 returns the deserialization
- // method for the "W3IDSecurityV1PublicKeyProperty" non-functional
- // property in the vocabulary "W3IDSecurityV1"
- DeserializePublicKeyPropertyW3IDSecurityV1() func(map[string]interface{}, map[string]string) (vocab.W3IDSecurityV1PublicKeyProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // DeserializeRepliesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsRepliesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeStreamsPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStreamsProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStreamsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStreamsProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // 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/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go
deleted file mode 100644
index ba850008b..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go
+++ /dev/null
@@ -1,2193 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeapplication
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "strings"
-)
-
-// Describes a software application.
-//
-// Example 42 (https://www.w3.org/TR/activitystreams-vocabulary/#ex34-jsonld):
-// {
-// "name": "Exampletron 3000",
-// "type": "Application"
-// }
-type ActivityStreamsApplication 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
- TootDiscoverable vocab.TootDiscoverableProperty
- ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
- ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
- TootFeatured vocab.TootFeaturedProperty
- ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty
- ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty
- ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
- ActivityStreamsIcon vocab.ActivityStreamsIconProperty
- JSONLDId vocab.JSONLDIdProperty
- ActivityStreamsImage vocab.ActivityStreamsImageProperty
- ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
- ActivityStreamsInbox vocab.ActivityStreamsInboxProperty
- ActivityStreamsLiked vocab.ActivityStreamsLikedProperty
- ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
- ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
- ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
- ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
- ActivityStreamsName vocab.ActivityStreamsNameProperty
- ActivityStreamsObject vocab.ActivityStreamsObjectProperty
- ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
- ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty
- ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
- W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
- ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
- ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
- ActivityStreamsShares vocab.ActivityStreamsSharesProperty
- ActivityStreamsSource vocab.ActivityStreamsSourceProperty
- ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
- ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty
- ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty
- ActivityStreamsTag vocab.ActivityStreamsTagProperty
- ForgeFedTeam vocab.ForgeFedTeamProperty
- ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty
- ActivityStreamsTo vocab.ActivityStreamsToProperty
- ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty
- JSONLDType vocab.JSONLDTypeProperty
- ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty
- ActivityStreamsUrl vocab.ActivityStreamsUrlProperty
- alias string
- unknown map[string]interface{}
-}
-
-// ActivityStreamsApplicationExtends returns true if the Application type extends
-// from the other type.
-func ActivityStreamsApplicationExtends(other vocab.Type) bool {
- extensions := []string{"Object"}
- for _, ext := range extensions {
- if ext == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// ApplicationIsDisjointWith returns true if the other provided type is disjoint
-// with the Application type.
-func ApplicationIsDisjointWith(other vocab.Type) bool {
- disjointWith := []string{"Link", "Mention"}
- for _, disjoint := range disjointWith {
- if disjoint == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// ApplicationIsExtendedBy returns true if the other provided type extends from
-// the Application type. Note that it returns false if the types are the same;
-// see the "IsOrExtendsApplication" variant instead.
-func ApplicationIsExtendedBy(other vocab.Type) bool {
- // Shortcut implementation: is not extended by anything.
- return false
-}
-
-// DeserializeApplication creates a Application from a map representation that has
-// been unmarshalled from a text or binary format.
-func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsApplication, error) {
- alias := ""
- aliasPrefix := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- aliasPrefix = a + ":"
- }
- this := &ActivityStreamsApplication{
- alias: alias,
- unknown: make(map[string]interface{}),
- }
- if typeValue, ok := m["type"]; !ok {
- return nil, fmt.Errorf("no \"type\" property in map")
- } else if typeString, ok := typeValue.(string); ok {
- typeName := strings.TrimPrefix(typeString, aliasPrefix)
- if typeName != "Application" {
- return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Application", typeName)
- }
- // Fall through, success in finding a proper Type
- } else if arrType, ok := typeValue.([]interface{}); ok {
- found := false
- for _, elemVal := range arrType {
- if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Application" {
- found = true
- break
- }
- }
- if !found {
- return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Application")
- }
- // Fall through, success in finding a proper Type
- } else {
- return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
- }
- // Begin: Known property deserialization
- if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAltitude = p
- }
- if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttachment = p
- }
- if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttributedTo = p
- }
- if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAudience = p
- }
- if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBcc = p
- }
- if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBto = p
- }
- if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsCc = p
- }
- if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContent = p
- }
- if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContext = p
- }
- if p, err := mgr.DeserializeDiscoverablePropertyToot()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.TootDiscoverable = p
- }
- if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsDuration = p
- }
- if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsEndTime = p
- }
- if p, err := mgr.DeserializeFeaturedPropertyToot()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.TootFeatured = p
- }
- if p, err := mgr.DeserializeFollowersPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsFollowers = p
- }
- if p, err := mgr.DeserializeFollowingPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsFollowing = p
- }
- if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsGenerator = p
- }
- if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsIcon = p
- }
- if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDId = p
- }
- if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsImage = p
- }
- if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInReplyTo = p
- }
- if p, err := mgr.DeserializeInboxPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInbox = p
- }
- if p, err := mgr.DeserializeLikedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLiked = p
- }
- if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLikes = p
- }
- if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLocation = p
- }
- if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsManuallyApprovesFollowers = p
- }
- if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsMediaType = p
- }
- if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsName = p
- }
- if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsObject = p
- }
- if p, err := mgr.DeserializeOutboxPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsOutbox = p
- }
- if p, err := mgr.DeserializePreferredUsernamePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPreferredUsername = p
- }
- if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPreview = p
- }
- if p, err := mgr.DeserializePublicKeyPropertyW3IDSecurityV1()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.W3IDSecurityV1PublicKey = p
- }
- if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPublished = p
- }
- if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsReplies = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeStreamsPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStreams = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.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 == "discoverable" {
- continue
- } else if k == "duration" {
- continue
- } else if k == "endTime" {
- continue
- } else if k == "featured" {
- continue
- } else if k == "followers" {
- continue
- } else if k == "following" {
- continue
- } else if k == "generator" {
- continue
- } else if k == "icon" {
- continue
- } else if k == "id" {
- continue
- } else if k == "image" {
- continue
- } else if k == "inReplyTo" {
- continue
- } else if k == "inbox" {
- continue
- } else if k == "liked" {
- continue
- } else if k == "likes" {
- continue
- } else if k == "location" {
- continue
- } else if k == "manuallyApprovesFollowers" {
- continue
- } else if k == "mediaType" {
- continue
- } else if k == "name" {
- continue
- } else if k == "nameMap" {
- continue
- } else if k == "object" {
- continue
- } else if k == "outbox" {
- continue
- } else if k == "preferredUsername" {
- continue
- } else if k == "preferredUsernameMap" {
- continue
- } else if k == "preview" {
- continue
- } else if k == "publicKey" {
- continue
- } else if k == "published" {
- continue
- } else if k == "replies" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "streams" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "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
-}
-
-// IsOrExtendsApplication returns true if the other provided type is the
-// Application type or extends from the Application type.
-func IsOrExtendsApplication(other vocab.Type) bool {
- if other.GetTypeName() == "Application" {
- return true
- }
- return ApplicationIsExtendedBy(other)
-}
-
-// NewActivityStreamsApplication creates a new Application type
-func NewActivityStreamsApplication() *ActivityStreamsApplication {
- typeProp := typePropertyConstructor()
- typeProp.AppendXMLSchemaString("Application")
- return &ActivityStreamsApplication{
- JSONLDType: typeProp,
- alias: "",
- unknown: make(map[string]interface{}),
- }
-}
-
-// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
- return this.ActivityStreamsAltitude
-}
-
-// GetActivityStreamsAttachment returns the "attachment" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty {
- return this.ActivityStreamsAttachment
-}
-
-// GetActivityStreamsAttributedTo returns the "attributedTo" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty {
- return this.ActivityStreamsAttributedTo
-}
-
-// GetActivityStreamsAudience returns the "audience" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty {
- return this.ActivityStreamsAudience
-}
-
-// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty {
- return this.ActivityStreamsBcc
-}
-
-// GetActivityStreamsBto returns the "bto" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty {
- return this.ActivityStreamsBto
-}
-
-// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty {
- return this.ActivityStreamsCc
-}
-
-// GetActivityStreamsContent returns the "content" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty {
- return this.ActivityStreamsContent
-}
-
-// GetActivityStreamsContext returns the "context" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty {
- return this.ActivityStreamsContext
-}
-
-// GetActivityStreamsDuration returns the "duration" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty {
- return this.ActivityStreamsDuration
-}
-
-// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty {
- return this.ActivityStreamsEndTime
-}
-
-// GetActivityStreamsFollowers returns the "followers" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsFollowers() vocab.ActivityStreamsFollowersProperty {
- return this.ActivityStreamsFollowers
-}
-
-// GetActivityStreamsFollowing returns the "following" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsFollowing() vocab.ActivityStreamsFollowingProperty {
- return this.ActivityStreamsFollowing
-}
-
-// GetActivityStreamsGenerator returns the "generator" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty {
- return this.ActivityStreamsGenerator
-}
-
-// GetActivityStreamsIcon returns the "icon" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty {
- return this.ActivityStreamsIcon
-}
-
-// GetActivityStreamsImage returns the "image" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty {
- return this.ActivityStreamsImage
-}
-
-// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty {
- return this.ActivityStreamsInReplyTo
-}
-
-// GetActivityStreamsInbox returns the "inbox" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsInbox() vocab.ActivityStreamsInboxProperty {
- return this.ActivityStreamsInbox
-}
-
-// GetActivityStreamsLiked returns the "liked" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsLiked() vocab.ActivityStreamsLikedProperty {
- return this.ActivityStreamsLiked
-}
-
-// GetActivityStreamsLikes returns the "likes" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty {
- return this.ActivityStreamsLikes
-}
-
-// GetActivityStreamsLocation returns the "location" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty {
- return this.ActivityStreamsLocation
-}
-
-// GetActivityStreamsManuallyApprovesFollowers returns the
-// "manuallyApprovesFollowers" property if it exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty {
- return this.ActivityStreamsManuallyApprovesFollowers
-}
-
-// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
- return this.ActivityStreamsMediaType
-}
-
-// GetActivityStreamsName returns the "name" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
- return this.ActivityStreamsName
-}
-
-// GetActivityStreamsObject returns the "object" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty {
- return this.ActivityStreamsObject
-}
-
-// GetActivityStreamsOutbox returns the "outbox" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsOutbox() vocab.ActivityStreamsOutboxProperty {
- return this.ActivityStreamsOutbox
-}
-
-// GetActivityStreamsPreferredUsername returns the "preferredUsername" property if
-// it exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsPreferredUsername() vocab.ActivityStreamsPreferredUsernameProperty {
- return this.ActivityStreamsPreferredUsername
-}
-
-// GetActivityStreamsPreview returns the "preview" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty {
- return this.ActivityStreamsPreview
-}
-
-// GetActivityStreamsPublished returns the "published" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty {
- return this.ActivityStreamsPublished
-}
-
-// GetActivityStreamsReplies returns the "replies" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty {
- return this.ActivityStreamsReplies
-}
-
-// GetActivityStreamsShares returns the "shares" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
- return this.ActivityStreamsShares
-}
-
-// GetActivityStreamsSource returns the "source" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty {
- return this.ActivityStreamsSource
-}
-
-// GetActivityStreamsStartTime returns the "startTime" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty {
- return this.ActivityStreamsStartTime
-}
-
-// GetActivityStreamsStreams returns the "streams" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsStreams() vocab.ActivityStreamsStreamsProperty {
- return this.ActivityStreamsStreams
-}
-
-// GetActivityStreamsSummary returns the "summary" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty {
- return this.ActivityStreamsSummary
-}
-
-// GetActivityStreamsTag returns the "tag" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty {
- return this.ActivityStreamsTag
-}
-
-// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsTo() vocab.ActivityStreamsToProperty {
- return this.ActivityStreamsTo
-}
-
-// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty {
- return this.ActivityStreamsUpdated
-}
-
-// GetActivityStreamsUrl returns the "url" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty {
- return this.ActivityStreamsUrl
-}
-
-// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetForgeFedTeam() vocab.ForgeFedTeamProperty {
- return this.ForgeFedTeam
-}
-
-// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty {
- return this.ForgeFedTicketsTrackedBy
-}
-
-// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty {
- return this.ForgeFedTracksTicketsFor
-}
-
-// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetJSONLDId() vocab.JSONLDIdProperty {
- return this.JSONLDId
-}
-
-// GetJSONLDType returns the "type" property if it exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetJSONLDType() vocab.JSONLDTypeProperty {
- return this.JSONLDType
-}
-
-// GetTootDiscoverable returns the "discoverable" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsApplication) GetTootDiscoverable() vocab.TootDiscoverableProperty {
- return this.TootDiscoverable
-}
-
-// GetTootFeatured returns the "featured" property if it exists, and nil otherwise.
-func (this ActivityStreamsApplication) GetTootFeatured() vocab.TootFeaturedProperty {
- return this.TootFeatured
-}
-
-// GetTypeName returns the name of this type.
-func (this ActivityStreamsApplication) GetTypeName() string {
- return "Application"
-}
-
-// GetUnknownProperties returns the unknown properties for the Application type.
-// Note that this should not be used by app developers. It is only used to
-// help determine which implementation is LessThan the other. Developers who
-// are creating a different implementation of this type's interface can use
-// this method in their LessThan implementation, but routine ActivityPub
-// applications should not use this to bypass the code generation tool.
-func (this ActivityStreamsApplication) GetUnknownProperties() map[string]interface{} {
- return this.unknown
-}
-
-// GetW3IDSecurityV1PublicKey returns the "publicKey" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsApplication) GetW3IDSecurityV1PublicKey() vocab.W3IDSecurityV1PublicKeyProperty {
- return this.W3IDSecurityV1PublicKey
-}
-
-// IsExtending returns true if the Application type extends from the other type.
-func (this ActivityStreamsApplication) IsExtending(other vocab.Type) bool {
- return ActivityStreamsApplicationExtends(other)
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// type and the specific properties that are set. The value in the map is the
-// alias used to import the type and its properties.
-func (this ActivityStreamsApplication) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
- m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContext, m)
- m = this.helperJSONLDContext(this.TootDiscoverable, m)
- m = this.helperJSONLDContext(this.ActivityStreamsDuration, m)
- m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m)
- m = this.helperJSONLDContext(this.TootFeatured, m)
- m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m)
- m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m)
- m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m)
- m = this.helperJSONLDContext(this.ActivityStreamsIcon, m)
- m = this.helperJSONLDContext(this.JSONLDId, m)
- m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInbox, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLiked, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
- m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
- m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
- m = this.helperJSONLDContext(this.ActivityStreamsName, m)
- m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
- m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPreferredUsername, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
- m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
- m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
- m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
- m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsStreams, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSummary, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTag, m)
- m = this.helperJSONLDContext(this.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 Application is lesser, with an arbitrary but stable
-// determination.
-func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplication) 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 "discoverable"
- if lhs, rhs := this.TootDiscoverable, o.GetTootDiscoverable(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "duration"
- if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "endTime"
- if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "featured"
- if lhs, rhs := this.TootFeatured, o.GetTootFeatured(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "followers"
- if lhs, rhs := this.ActivityStreamsFollowers, o.GetActivityStreamsFollowers(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "following"
- if lhs, rhs := this.ActivityStreamsFollowing, o.GetActivityStreamsFollowing(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "generator"
- if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "icon"
- if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "id"
- if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "image"
- if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "inReplyTo"
- if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "inbox"
- if lhs, rhs := this.ActivityStreamsInbox, o.GetActivityStreamsInbox(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "liked"
- if lhs, rhs := this.ActivityStreamsLiked, o.GetActivityStreamsLiked(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "likes"
- if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "location"
- if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "manuallyApprovesFollowers"
- if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "mediaType"
- if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "name"
- if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "object"
- if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "outbox"
- if lhs, rhs := this.ActivityStreamsOutbox, o.GetActivityStreamsOutbox(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "preferredUsername"
- if lhs, rhs := this.ActivityStreamsPreferredUsername, o.GetActivityStreamsPreferredUsername(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "preview"
- if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "publicKey"
- if lhs, rhs := this.W3IDSecurityV1PublicKey, o.GetW3IDSecurityV1PublicKey(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "published"
- if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "replies"
- if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "shares"
- if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "source"
- if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "startTime"
- if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "streams"
- if lhs, rhs := this.ActivityStreamsStreams, o.GetActivityStreamsStreams(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "summary"
- if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tag"
- if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 ActivityStreamsApplication) Serialize() (map[string]interface{}, error) {
- m := make(map[string]interface{})
- typeName := "Application"
- if len(this.alias) > 0 {
- typeName = this.alias + ":" + "Application"
- }
- m["type"] = typeName
- // Begin: Serialize known properties
- // Maybe serialize property "altitude"
- if this.ActivityStreamsAltitude != nil {
- if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAltitude.Name()] = i
- }
- }
- // Maybe serialize property "attachment"
- if this.ActivityStreamsAttachment != nil {
- if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttachment.Name()] = i
- }
- }
- // Maybe serialize property "attributedTo"
- if this.ActivityStreamsAttributedTo != nil {
- if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttributedTo.Name()] = i
- }
- }
- // Maybe serialize property "audience"
- if this.ActivityStreamsAudience != nil {
- if i, err := this.ActivityStreamsAudience.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAudience.Name()] = i
- }
- }
- // Maybe serialize property "bcc"
- if this.ActivityStreamsBcc != nil {
- if i, err := this.ActivityStreamsBcc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBcc.Name()] = i
- }
- }
- // Maybe serialize property "bto"
- if this.ActivityStreamsBto != nil {
- if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBto.Name()] = i
- }
- }
- // Maybe serialize property "cc"
- if this.ActivityStreamsCc != nil {
- if i, err := this.ActivityStreamsCc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsCc.Name()] = i
- }
- }
- // Maybe serialize property "content"
- if this.ActivityStreamsContent != nil {
- if i, err := this.ActivityStreamsContent.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContent.Name()] = i
- }
- }
- // Maybe serialize property "context"
- if this.ActivityStreamsContext != nil {
- if i, err := this.ActivityStreamsContext.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContext.Name()] = i
- }
- }
- // Maybe serialize property "discoverable"
- if this.TootDiscoverable != nil {
- if i, err := this.TootDiscoverable.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.TootDiscoverable.Name()] = i
- }
- }
- // Maybe serialize property "duration"
- if this.ActivityStreamsDuration != nil {
- if i, err := this.ActivityStreamsDuration.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsDuration.Name()] = i
- }
- }
- // Maybe serialize property "endTime"
- if this.ActivityStreamsEndTime != nil {
- if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsEndTime.Name()] = i
- }
- }
- // Maybe serialize property "featured"
- if this.TootFeatured != nil {
- if i, err := this.TootFeatured.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.TootFeatured.Name()] = i
- }
- }
- // Maybe serialize property "followers"
- if this.ActivityStreamsFollowers != nil {
- if i, err := this.ActivityStreamsFollowers.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsFollowers.Name()] = i
- }
- }
- // Maybe serialize property "following"
- if this.ActivityStreamsFollowing != nil {
- if i, err := this.ActivityStreamsFollowing.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsFollowing.Name()] = i
- }
- }
- // Maybe serialize property "generator"
- if this.ActivityStreamsGenerator != nil {
- if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsGenerator.Name()] = i
- }
- }
- // Maybe serialize property "icon"
- if this.ActivityStreamsIcon != nil {
- if i, err := this.ActivityStreamsIcon.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsIcon.Name()] = i
- }
- }
- // Maybe serialize property "id"
- if this.JSONLDId != nil {
- if i, err := this.JSONLDId.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.JSONLDId.Name()] = i
- }
- }
- // Maybe serialize property "image"
- if this.ActivityStreamsImage != nil {
- if i, err := this.ActivityStreamsImage.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsImage.Name()] = i
- }
- }
- // Maybe serialize property "inReplyTo"
- if this.ActivityStreamsInReplyTo != nil {
- if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInReplyTo.Name()] = i
- }
- }
- // Maybe serialize property "inbox"
- if this.ActivityStreamsInbox != nil {
- if i, err := this.ActivityStreamsInbox.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInbox.Name()] = i
- }
- }
- // Maybe serialize property "liked"
- if this.ActivityStreamsLiked != nil {
- if i, err := this.ActivityStreamsLiked.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLiked.Name()] = i
- }
- }
- // Maybe serialize property "likes"
- if this.ActivityStreamsLikes != nil {
- if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLikes.Name()] = i
- }
- }
- // Maybe serialize property "location"
- if this.ActivityStreamsLocation != nil {
- if i, err := this.ActivityStreamsLocation.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLocation.Name()] = i
- }
- }
- // Maybe serialize property "manuallyApprovesFollowers"
- if this.ActivityStreamsManuallyApprovesFollowers != nil {
- if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i
- }
- }
- // Maybe serialize property "mediaType"
- if this.ActivityStreamsMediaType != nil {
- if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsMediaType.Name()] = i
- }
- }
- // Maybe serialize property "name"
- if this.ActivityStreamsName != nil {
- if i, err := this.ActivityStreamsName.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsName.Name()] = i
- }
- }
- // Maybe serialize property "object"
- if this.ActivityStreamsObject != nil {
- if i, err := this.ActivityStreamsObject.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsObject.Name()] = i
- }
- }
- // Maybe serialize property "outbox"
- if this.ActivityStreamsOutbox != nil {
- if i, err := this.ActivityStreamsOutbox.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsOutbox.Name()] = i
- }
- }
- // Maybe serialize property "preferredUsername"
- if this.ActivityStreamsPreferredUsername != nil {
- if i, err := this.ActivityStreamsPreferredUsername.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPreferredUsername.Name()] = i
- }
- }
- // Maybe serialize property "preview"
- if this.ActivityStreamsPreview != nil {
- if i, err := this.ActivityStreamsPreview.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPreview.Name()] = i
- }
- }
- // Maybe serialize property "publicKey"
- if this.W3IDSecurityV1PublicKey != nil {
- if i, err := this.W3IDSecurityV1PublicKey.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.W3IDSecurityV1PublicKey.Name()] = i
- }
- }
- // Maybe serialize property "published"
- if this.ActivityStreamsPublished != nil {
- if i, err := this.ActivityStreamsPublished.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPublished.Name()] = i
- }
- }
- // Maybe serialize property "replies"
- if this.ActivityStreamsReplies != nil {
- if i, err := this.ActivityStreamsReplies.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsReplies.Name()] = i
- }
- }
- // Maybe serialize property "shares"
- if this.ActivityStreamsShares != nil {
- if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsShares.Name()] = i
- }
- }
- // Maybe serialize property "source"
- if this.ActivityStreamsSource != nil {
- if i, err := this.ActivityStreamsSource.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSource.Name()] = i
- }
- }
- // Maybe serialize property "startTime"
- if this.ActivityStreamsStartTime != nil {
- if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsStartTime.Name()] = i
- }
- }
- // Maybe serialize property "streams"
- if this.ActivityStreamsStreams != nil {
- if i, err := this.ActivityStreamsStreams.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsStreams.Name()] = i
- }
- }
- // Maybe serialize property "summary"
- if this.ActivityStreamsSummary != nil {
- if i, err := this.ActivityStreamsSummary.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSummary.Name()] = i
- }
- }
- // Maybe serialize property "tag"
- if this.ActivityStreamsTag != nil {
- if i, err := this.ActivityStreamsTag.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTag.Name()] = i
- }
- }
- // Maybe serialize property "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 *ActivityStreamsApplication) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
- this.ActivityStreamsAltitude = i
-}
-
-// SetActivityStreamsAttachment sets the "attachment" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) {
- this.ActivityStreamsAttachment = i
-}
-
-// SetActivityStreamsAttributedTo sets the "attributedTo" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) {
- this.ActivityStreamsAttributedTo = i
-}
-
-// SetActivityStreamsAudience sets the "audience" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) {
- this.ActivityStreamsAudience = i
-}
-
-// SetActivityStreamsBcc sets the "bcc" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) {
- this.ActivityStreamsBcc = i
-}
-
-// SetActivityStreamsBto sets the "bto" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) {
- this.ActivityStreamsBto = i
-}
-
-// SetActivityStreamsCc sets the "cc" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) {
- this.ActivityStreamsCc = i
-}
-
-// SetActivityStreamsContent sets the "content" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) {
- this.ActivityStreamsContent = i
-}
-
-// SetActivityStreamsContext sets the "context" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) {
- this.ActivityStreamsContext = i
-}
-
-// SetActivityStreamsDuration sets the "duration" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) {
- this.ActivityStreamsDuration = i
-}
-
-// SetActivityStreamsEndTime sets the "endTime" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) {
- this.ActivityStreamsEndTime = i
-}
-
-// SetActivityStreamsFollowers sets the "followers" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsFollowers(i vocab.ActivityStreamsFollowersProperty) {
- this.ActivityStreamsFollowers = i
-}
-
-// SetActivityStreamsFollowing sets the "following" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsFollowing(i vocab.ActivityStreamsFollowingProperty) {
- this.ActivityStreamsFollowing = i
-}
-
-// SetActivityStreamsGenerator sets the "generator" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) {
- this.ActivityStreamsGenerator = i
-}
-
-// SetActivityStreamsIcon sets the "icon" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) {
- this.ActivityStreamsIcon = i
-}
-
-// SetActivityStreamsImage sets the "image" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) {
- this.ActivityStreamsImage = i
-}
-
-// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) {
- this.ActivityStreamsInReplyTo = i
-}
-
-// SetActivityStreamsInbox sets the "inbox" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsInbox(i vocab.ActivityStreamsInboxProperty) {
- this.ActivityStreamsInbox = i
-}
-
-// SetActivityStreamsLiked sets the "liked" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsLiked(i vocab.ActivityStreamsLikedProperty) {
- this.ActivityStreamsLiked = i
-}
-
-// SetActivityStreamsLikes sets the "likes" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) {
- this.ActivityStreamsLikes = i
-}
-
-// SetActivityStreamsLocation sets the "location" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) {
- this.ActivityStreamsLocation = i
-}
-
-// SetActivityStreamsManuallyApprovesFollowers sets the
-// "manuallyApprovesFollowers" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) {
- this.ActivityStreamsManuallyApprovesFollowers = i
-}
-
-// SetActivityStreamsMediaType sets the "mediaType" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
- this.ActivityStreamsMediaType = i
-}
-
-// SetActivityStreamsName sets the "name" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
- this.ActivityStreamsName = i
-}
-
-// SetActivityStreamsObject sets the "object" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) {
- this.ActivityStreamsObject = i
-}
-
-// SetActivityStreamsOutbox sets the "outbox" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsOutbox(i vocab.ActivityStreamsOutboxProperty) {
- this.ActivityStreamsOutbox = i
-}
-
-// SetActivityStreamsPreferredUsername sets the "preferredUsername" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsPreferredUsername(i vocab.ActivityStreamsPreferredUsernameProperty) {
- this.ActivityStreamsPreferredUsername = i
-}
-
-// SetActivityStreamsPreview sets the "preview" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) {
- this.ActivityStreamsPreview = i
-}
-
-// SetActivityStreamsPublished sets the "published" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) {
- this.ActivityStreamsPublished = i
-}
-
-// SetActivityStreamsReplies sets the "replies" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) {
- this.ActivityStreamsReplies = i
-}
-
-// SetActivityStreamsShares sets the "shares" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
- this.ActivityStreamsShares = i
-}
-
-// SetActivityStreamsSource sets the "source" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) {
- this.ActivityStreamsSource = i
-}
-
-// SetActivityStreamsStartTime sets the "startTime" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) {
- this.ActivityStreamsStartTime = i
-}
-
-// SetActivityStreamsStreams sets the "streams" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsStreams(i vocab.ActivityStreamsStreamsProperty) {
- this.ActivityStreamsStreams = i
-}
-
-// SetActivityStreamsSummary sets the "summary" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) {
- this.ActivityStreamsSummary = i
-}
-
-// SetActivityStreamsTag sets the "tag" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) {
- this.ActivityStreamsTag = i
-}
-
-// SetActivityStreamsTo sets the "to" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) {
- this.ActivityStreamsTo = i
-}
-
-// SetActivityStreamsUpdated sets the "updated" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) {
- this.ActivityStreamsUpdated = i
-}
-
-// SetActivityStreamsUrl sets the "url" property.
-func (this *ActivityStreamsApplication) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) {
- this.ActivityStreamsUrl = i
-}
-
-// SetForgeFedTeam sets the "team" property.
-func (this *ActivityStreamsApplication) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) {
- this.ForgeFedTeam = i
-}
-
-// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property.
-func (this *ActivityStreamsApplication) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) {
- this.ForgeFedTicketsTrackedBy = i
-}
-
-// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property.
-func (this *ActivityStreamsApplication) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) {
- this.ForgeFedTracksTicketsFor = i
-}
-
-// SetJSONLDId sets the "id" property.
-func (this *ActivityStreamsApplication) SetJSONLDId(i vocab.JSONLDIdProperty) {
- this.JSONLDId = i
-}
-
-// SetJSONLDType sets the "type" property.
-func (this *ActivityStreamsApplication) SetJSONLDType(i vocab.JSONLDTypeProperty) {
- this.JSONLDType = i
-}
-
-// SetTootDiscoverable sets the "discoverable" property.
-func (this *ActivityStreamsApplication) SetTootDiscoverable(i vocab.TootDiscoverableProperty) {
- this.TootDiscoverable = i
-}
-
-// SetTootFeatured sets the "featured" property.
-func (this *ActivityStreamsApplication) SetTootFeatured(i vocab.TootFeaturedProperty) {
- this.TootFeatured = i
-}
-
-// SetW3IDSecurityV1PublicKey sets the "publicKey" property.
-func (this *ActivityStreamsApplication) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) {
- this.W3IDSecurityV1PublicKey = i
-}
-
-// VocabularyURI returns the vocabulary's URI as a string.
-func (this ActivityStreamsApplication) VocabularyURI() string {
- return "https://www.w3.org/ns/activitystreams"
-}
-
-// helperJSONLDContext obtains the context uris and their aliases from a property,
-// if it is not nil.
-func (this ActivityStreamsApplication) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string {
- if i == nil {
- return toMerge
- }
- for k, v := range i.JSONLDContext() {
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- toMerge[k] = v
- }
- return toMerge
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go
deleted file mode 100644
index 3ed9d1387..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go
+++ /dev/null
@@ -1,203 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typearrive
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeActorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsActorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error)
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeInstrumentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsInstrumentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeOriginPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsOriginProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // DeserializeRepliesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsRepliesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
- // DeserializeResultPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsResultProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTargetPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTargetProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go
deleted file mode 100644
index 0e09740e6..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go
+++ /dev/null
@@ -1,1911 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typearrive
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "strings"
-)
-
-// An IntransitiveActivity that indicates that the actor has arrived at the
-// location. The origin can be used to identify the context from which the
-// actor originated. The target typically has no defined meaning.
-//
-// Example 14 (https://www.w3.org/TR/activitystreams-vocabulary/#ex11-jsonld):
-// {
-// "actor": {
-// "name": "Sally",
-// "type": "Person"
-// },
-// "location": {
-// "name": "Work",
-// "type": "Place"
-// },
-// "origin": {
-// "name": "Home",
-// "type": "Place"
-// },
-// "summary": "Sally arrived at work",
-// "type": "Arrive"
-// }
-type ActivityStreamsArrive struct {
- ActivityStreamsActor vocab.ActivityStreamsActorProperty
- ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
- ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
- ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
- ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
- ActivityStreamsBcc vocab.ActivityStreamsBccProperty
- ActivityStreamsBto vocab.ActivityStreamsBtoProperty
- ActivityStreamsCc vocab.ActivityStreamsCcProperty
- ActivityStreamsContent vocab.ActivityStreamsContentProperty
- ActivityStreamsContext vocab.ActivityStreamsContextProperty
- ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
- ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
- ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
- ActivityStreamsIcon vocab.ActivityStreamsIconProperty
- JSONLDId vocab.JSONLDIdProperty
- ActivityStreamsImage vocab.ActivityStreamsImageProperty
- ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
- ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty
- ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
- ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
- ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
- ActivityStreamsName vocab.ActivityStreamsNameProperty
- ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty
- ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
- ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
- ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
- ActivityStreamsResult vocab.ActivityStreamsResultProperty
- 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{}
-}
-
-// ActivityStreamsArriveExtends returns true if the Arrive type extends from the
-// other type.
-func ActivityStreamsArriveExtends(other vocab.Type) bool {
- extensions := []string{"Activity", "IntransitiveActivity", "Object"}
- for _, ext := range extensions {
- if ext == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// ArriveIsDisjointWith returns true if the other provided type is disjoint with
-// the Arrive type.
-func ArriveIsDisjointWith(other vocab.Type) bool {
- disjointWith := []string{"Link", "Mention"}
- for _, disjoint := range disjointWith {
- if disjoint == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// ArriveIsExtendedBy returns true if the other provided type extends from the
-// Arrive type. Note that it returns false if the types are the same; see the
-// "IsOrExtendsArrive" variant instead.
-func ArriveIsExtendedBy(other vocab.Type) bool {
- // Shortcut implementation: is not extended by anything.
- return false
-}
-
-// DeserializeArrive creates a Arrive from a map representation that has been
-// unmarshalled from a text or binary format.
-func DeserializeArrive(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsArrive, error) {
- alias := ""
- aliasPrefix := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- aliasPrefix = a + ":"
- }
- this := &ActivityStreamsArrive{
- alias: alias,
- unknown: make(map[string]interface{}),
- }
- if typeValue, ok := m["type"]; !ok {
- return nil, fmt.Errorf("no \"type\" property in map")
- } else if typeString, ok := typeValue.(string); ok {
- typeName := strings.TrimPrefix(typeString, aliasPrefix)
- if typeName != "Arrive" {
- return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Arrive", typeName)
- }
- // Fall through, success in finding a proper Type
- } else if arrType, ok := typeValue.([]interface{}); ok {
- found := false
- for _, elemVal := range arrType {
- if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Arrive" {
- found = true
- break
- }
- }
- if !found {
- return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Arrive")
- }
- // Fall through, success in finding a proper Type
- } else {
- return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
- }
- // Begin: Known property deserialization
- if p, err := mgr.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsActor = p
- }
- if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAltitude = p
- }
- if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttachment = p
- }
- if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttributedTo = p
- }
- if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAudience = p
- }
- if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBcc = p
- }
- if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBto = p
- }
- if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsCc = p
- }
- if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContent = p
- }
- if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContext = p
- }
- if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsDuration = p
- }
- if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsEndTime = p
- }
- if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsGenerator = p
- }
- if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsIcon = p
- }
- if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDId = p
- }
- if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsImage = p
- }
- if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInReplyTo = p
- }
- if p, err := mgr.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInstrument = p
- }
- if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLikes = p
- }
- if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLocation = p
- }
- if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsMediaType = p
- }
- if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsName = p
- }
- if p, err := mgr.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsOrigin = p
- }
- if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPreview = p
- }
- if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPublished = p
- }
- if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsReplies = p
- }
- if p, err := mgr.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsResult = p
- }
- if p, err := mgr.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 == "origin" {
- continue
- } else if k == "preview" {
- continue
- } else if k == "published" {
- continue
- } else if k == "replies" {
- continue
- } else if k == "result" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "target" {
- continue
- } else if k == "team" {
- continue
- } else if k == "ticketsTrackedBy" {
- continue
- } else if k == "to" {
- continue
- } else if k == "tracksTicketsFor" {
- continue
- } else if k == "type" {
- continue
- } else if k == "updated" {
- continue
- } else if k == "url" {
- continue
- } // End: Code that ensures a property name is unknown
-
- this.unknown[k] = v
- }
- // End: Unknown deserialization
-
- return this, nil
-}
-
-// IsOrExtendsArrive returns true if the other provided type is the Arrive type or
-// extends from the Arrive type.
-func IsOrExtendsArrive(other vocab.Type) bool {
- if other.GetTypeName() == "Arrive" {
- return true
- }
- return ArriveIsExtendedBy(other)
-}
-
-// NewActivityStreamsArrive creates a new Arrive type
-func NewActivityStreamsArrive() *ActivityStreamsArrive {
- typeProp := typePropertyConstructor()
- typeProp.AppendXMLSchemaString("Arrive")
- return &ActivityStreamsArrive{
- JSONLDType: typeProp,
- alias: "",
- unknown: make(map[string]interface{}),
- }
-}
-
-// GetActivityStreamsActor returns the "actor" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty {
- return this.ActivityStreamsActor
-}
-
-// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
- return this.ActivityStreamsAltitude
-}
-
-// GetActivityStreamsAttachment returns the "attachment" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty {
- return this.ActivityStreamsAttachment
-}
-
-// GetActivityStreamsAttributedTo returns the "attributedTo" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty {
- return this.ActivityStreamsAttributedTo
-}
-
-// GetActivityStreamsAudience returns the "audience" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty {
- return this.ActivityStreamsAudience
-}
-
-// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty {
- return this.ActivityStreamsBcc
-}
-
-// GetActivityStreamsBto returns the "bto" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty {
- return this.ActivityStreamsBto
-}
-
-// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty {
- return this.ActivityStreamsCc
-}
-
-// GetActivityStreamsContent returns the "content" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty {
- return this.ActivityStreamsContent
-}
-
-// GetActivityStreamsContext returns the "context" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty {
- return this.ActivityStreamsContext
-}
-
-// GetActivityStreamsDuration returns the "duration" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty {
- return this.ActivityStreamsDuration
-}
-
-// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty {
- return this.ActivityStreamsEndTime
-}
-
-// GetActivityStreamsGenerator returns the "generator" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty {
- return this.ActivityStreamsGenerator
-}
-
-// GetActivityStreamsIcon returns the "icon" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty {
- return this.ActivityStreamsIcon
-}
-
-// GetActivityStreamsImage returns the "image" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty {
- return this.ActivityStreamsImage
-}
-
-// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty {
- return this.ActivityStreamsInReplyTo
-}
-
-// GetActivityStreamsInstrument returns the "instrument" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty {
- return this.ActivityStreamsInstrument
-}
-
-// GetActivityStreamsLikes returns the "likes" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty {
- return this.ActivityStreamsLikes
-}
-
-// GetActivityStreamsLocation returns the "location" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty {
- return this.ActivityStreamsLocation
-}
-
-// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
- return this.ActivityStreamsMediaType
-}
-
-// GetActivityStreamsName returns the "name" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
- return this.ActivityStreamsName
-}
-
-// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty {
- return this.ActivityStreamsOrigin
-}
-
-// GetActivityStreamsPreview returns the "preview" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty {
- return this.ActivityStreamsPreview
-}
-
-// GetActivityStreamsPublished returns the "published" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty {
- return this.ActivityStreamsPublished
-}
-
-// GetActivityStreamsReplies returns the "replies" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty {
- return this.ActivityStreamsReplies
-}
-
-// GetActivityStreamsResult returns the "result" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty {
- return this.ActivityStreamsResult
-}
-
-// GetActivityStreamsShares returns the "shares" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
- return this.ActivityStreamsShares
-}
-
-// GetActivityStreamsSource returns the "source" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty {
- return this.ActivityStreamsSource
-}
-
-// GetActivityStreamsStartTime returns the "startTime" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty {
- return this.ActivityStreamsStartTime
-}
-
-// GetActivityStreamsSummary returns the "summary" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty {
- return this.ActivityStreamsSummary
-}
-
-// GetActivityStreamsTag returns the "tag" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty {
- return this.ActivityStreamsTag
-}
-
-// GetActivityStreamsTarget returns the "target" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty {
- return this.ActivityStreamsTarget
-}
-
-// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsTo() vocab.ActivityStreamsToProperty {
- return this.ActivityStreamsTo
-}
-
-// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty {
- return this.ActivityStreamsUpdated
-}
-
-// GetActivityStreamsUrl returns the "url" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArrive) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty {
- return this.ActivityStreamsUrl
-}
-
-// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise.
-func (this ActivityStreamsArrive) GetForgeFedTeam() vocab.ForgeFedTeamProperty {
- return this.ForgeFedTeam
-}
-
-// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsArrive) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty {
- return this.ForgeFedTicketsTrackedBy
-}
-
-// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsArrive) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty {
- return this.ForgeFedTracksTicketsFor
-}
-
-// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
-func (this ActivityStreamsArrive) GetJSONLDId() vocab.JSONLDIdProperty {
- return this.JSONLDId
-}
-
-// GetJSONLDType returns the "type" property if it exists, and nil otherwise.
-func (this ActivityStreamsArrive) GetJSONLDType() vocab.JSONLDTypeProperty {
- return this.JSONLDType
-}
-
-// GetTypeName returns the name of this type.
-func (this ActivityStreamsArrive) GetTypeName() string {
- return "Arrive"
-}
-
-// GetUnknownProperties returns the unknown properties for the Arrive type. Note
-// that this should not be used by app developers. It is only used to help
-// determine which implementation is LessThan the other. Developers who are
-// creating a different implementation of this type's interface can use this
-// method in their LessThan implementation, but routine ActivityPub
-// applications should not use this to bypass the code generation tool.
-func (this ActivityStreamsArrive) GetUnknownProperties() map[string]interface{} {
- return this.unknown
-}
-
-// IsExtending returns true if the Arrive type extends from the other type.
-func (this ActivityStreamsArrive) IsExtending(other vocab.Type) bool {
- return ActivityStreamsArriveExtends(other)
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// type and the specific properties that are set. The value in the map is the
-// alias used to import the type and its properties.
-func (this ActivityStreamsArrive) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- m = this.helperJSONLDContext(this.ActivityStreamsActor, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
- m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContext, m)
- m = this.helperJSONLDContext(this.ActivityStreamsDuration, m)
- m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m)
- m = this.helperJSONLDContext(this.ActivityStreamsIcon, m)
- m = this.helperJSONLDContext(this.JSONLDId, m)
- m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
- m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
- m = this.helperJSONLDContext(this.ActivityStreamsName, m)
- m = this.helperJSONLDContext(this.ActivityStreamsOrigin, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
- m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
- m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
- m = this.helperJSONLDContext(this.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 Arrive is lesser, with an arbitrary but stable
-// determination.
-func (this ActivityStreamsArrive) LessThan(o vocab.ActivityStreamsArrive) bool {
- // Begin: Compare known properties
- // Compare property "actor"
- if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "altitude"
- if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attachment"
- if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attributedTo"
- if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "audience"
- if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bcc"
- if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bto"
- if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "cc"
- if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "content"
- if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "context"
- if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "duration"
- if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "endTime"
- if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "generator"
- if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "icon"
- if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "id"
- if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "image"
- if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "inReplyTo"
- if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "instrument"
- if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "likes"
- if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "location"
- if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "mediaType"
- if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "name"
- if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "origin"
- if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "preview"
- if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "published"
- if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "replies"
- if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "result"
- if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 ActivityStreamsArrive) Serialize() (map[string]interface{}, error) {
- m := make(map[string]interface{})
- typeName := "Arrive"
- if len(this.alias) > 0 {
- typeName = this.alias + ":" + "Arrive"
- }
- m["type"] = typeName
- // Begin: Serialize known properties
- // Maybe serialize property "actor"
- if this.ActivityStreamsActor != nil {
- if i, err := this.ActivityStreamsActor.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsActor.Name()] = i
- }
- }
- // Maybe serialize property "altitude"
- if this.ActivityStreamsAltitude != nil {
- if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAltitude.Name()] = i
- }
- }
- // Maybe serialize property "attachment"
- if this.ActivityStreamsAttachment != nil {
- if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttachment.Name()] = i
- }
- }
- // Maybe serialize property "attributedTo"
- if this.ActivityStreamsAttributedTo != nil {
- if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttributedTo.Name()] = i
- }
- }
- // Maybe serialize property "audience"
- if this.ActivityStreamsAudience != nil {
- if i, err := this.ActivityStreamsAudience.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAudience.Name()] = i
- }
- }
- // Maybe serialize property "bcc"
- if this.ActivityStreamsBcc != nil {
- if i, err := this.ActivityStreamsBcc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBcc.Name()] = i
- }
- }
- // Maybe serialize property "bto"
- if this.ActivityStreamsBto != nil {
- if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBto.Name()] = i
- }
- }
- // Maybe serialize property "cc"
- if this.ActivityStreamsCc != nil {
- if i, err := this.ActivityStreamsCc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsCc.Name()] = i
- }
- }
- // Maybe serialize property "content"
- if this.ActivityStreamsContent != nil {
- if i, err := this.ActivityStreamsContent.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContent.Name()] = i
- }
- }
- // Maybe serialize property "context"
- if this.ActivityStreamsContext != nil {
- if i, err := this.ActivityStreamsContext.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContext.Name()] = i
- }
- }
- // Maybe serialize property "duration"
- if this.ActivityStreamsDuration != nil {
- if i, err := this.ActivityStreamsDuration.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsDuration.Name()] = i
- }
- }
- // Maybe serialize property "endTime"
- if this.ActivityStreamsEndTime != nil {
- if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsEndTime.Name()] = i
- }
- }
- // Maybe serialize property "generator"
- if this.ActivityStreamsGenerator != nil {
- if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsGenerator.Name()] = i
- }
- }
- // Maybe serialize property "icon"
- if this.ActivityStreamsIcon != nil {
- if i, err := this.ActivityStreamsIcon.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsIcon.Name()] = i
- }
- }
- // Maybe serialize property "id"
- if this.JSONLDId != nil {
- if i, err := this.JSONLDId.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.JSONLDId.Name()] = i
- }
- }
- // Maybe serialize property "image"
- if this.ActivityStreamsImage != nil {
- if i, err := this.ActivityStreamsImage.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsImage.Name()] = i
- }
- }
- // Maybe serialize property "inReplyTo"
- if this.ActivityStreamsInReplyTo != nil {
- if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInReplyTo.Name()] = i
- }
- }
- // Maybe serialize property "instrument"
- if this.ActivityStreamsInstrument != nil {
- if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInstrument.Name()] = i
- }
- }
- // Maybe serialize property "likes"
- if this.ActivityStreamsLikes != nil {
- if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLikes.Name()] = i
- }
- }
- // Maybe serialize property "location"
- if this.ActivityStreamsLocation != nil {
- if i, err := this.ActivityStreamsLocation.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLocation.Name()] = i
- }
- }
- // Maybe serialize property "mediaType"
- if this.ActivityStreamsMediaType != nil {
- if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsMediaType.Name()] = i
- }
- }
- // Maybe serialize property "name"
- if this.ActivityStreamsName != nil {
- if i, err := this.ActivityStreamsName.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsName.Name()] = i
- }
- }
- // Maybe serialize property "origin"
- if this.ActivityStreamsOrigin != nil {
- if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsOrigin.Name()] = i
- }
- }
- // Maybe serialize property "preview"
- if this.ActivityStreamsPreview != nil {
- if i, err := this.ActivityStreamsPreview.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPreview.Name()] = i
- }
- }
- // Maybe serialize property "published"
- if this.ActivityStreamsPublished != nil {
- if i, err := this.ActivityStreamsPublished.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPublished.Name()] = i
- }
- }
- // Maybe serialize property "replies"
- if this.ActivityStreamsReplies != nil {
- if i, err := this.ActivityStreamsReplies.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsReplies.Name()] = i
- }
- }
- // Maybe serialize property "result"
- if this.ActivityStreamsResult != nil {
- if i, err := this.ActivityStreamsResult.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsResult.Name()] = i
- }
- }
- // Maybe serialize property "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 *ActivityStreamsArrive) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) {
- this.ActivityStreamsActor = i
-}
-
-// SetActivityStreamsAltitude sets the "altitude" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
- this.ActivityStreamsAltitude = i
-}
-
-// SetActivityStreamsAttachment sets the "attachment" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) {
- this.ActivityStreamsAttachment = i
-}
-
-// SetActivityStreamsAttributedTo sets the "attributedTo" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) {
- this.ActivityStreamsAttributedTo = i
-}
-
-// SetActivityStreamsAudience sets the "audience" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) {
- this.ActivityStreamsAudience = i
-}
-
-// SetActivityStreamsBcc sets the "bcc" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) {
- this.ActivityStreamsBcc = i
-}
-
-// SetActivityStreamsBto sets the "bto" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) {
- this.ActivityStreamsBto = i
-}
-
-// SetActivityStreamsCc sets the "cc" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) {
- this.ActivityStreamsCc = i
-}
-
-// SetActivityStreamsContent sets the "content" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) {
- this.ActivityStreamsContent = i
-}
-
-// SetActivityStreamsContext sets the "context" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) {
- this.ActivityStreamsContext = i
-}
-
-// SetActivityStreamsDuration sets the "duration" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) {
- this.ActivityStreamsDuration = i
-}
-
-// SetActivityStreamsEndTime sets the "endTime" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) {
- this.ActivityStreamsEndTime = i
-}
-
-// SetActivityStreamsGenerator sets the "generator" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) {
- this.ActivityStreamsGenerator = i
-}
-
-// SetActivityStreamsIcon sets the "icon" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) {
- this.ActivityStreamsIcon = i
-}
-
-// SetActivityStreamsImage sets the "image" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) {
- this.ActivityStreamsImage = i
-}
-
-// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) {
- this.ActivityStreamsInReplyTo = i
-}
-
-// SetActivityStreamsInstrument sets the "instrument" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) {
- this.ActivityStreamsInstrument = i
-}
-
-// SetActivityStreamsLikes sets the "likes" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) {
- this.ActivityStreamsLikes = i
-}
-
-// SetActivityStreamsLocation sets the "location" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) {
- this.ActivityStreamsLocation = i
-}
-
-// SetActivityStreamsMediaType sets the "mediaType" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
- this.ActivityStreamsMediaType = i
-}
-
-// SetActivityStreamsName sets the "name" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
- this.ActivityStreamsName = i
-}
-
-// SetActivityStreamsOrigin sets the "origin" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) {
- this.ActivityStreamsOrigin = i
-}
-
-// SetActivityStreamsPreview sets the "preview" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) {
- this.ActivityStreamsPreview = i
-}
-
-// SetActivityStreamsPublished sets the "published" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) {
- this.ActivityStreamsPublished = i
-}
-
-// SetActivityStreamsReplies sets the "replies" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) {
- this.ActivityStreamsReplies = i
-}
-
-// SetActivityStreamsResult sets the "result" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) {
- this.ActivityStreamsResult = i
-}
-
-// SetActivityStreamsShares sets the "shares" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
- this.ActivityStreamsShares = i
-}
-
-// SetActivityStreamsSource sets the "source" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) {
- this.ActivityStreamsSource = i
-}
-
-// SetActivityStreamsStartTime sets the "startTime" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) {
- this.ActivityStreamsStartTime = i
-}
-
-// SetActivityStreamsSummary sets the "summary" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) {
- this.ActivityStreamsSummary = i
-}
-
-// SetActivityStreamsTag sets the "tag" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) {
- this.ActivityStreamsTag = i
-}
-
-// SetActivityStreamsTarget sets the "target" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) {
- this.ActivityStreamsTarget = i
-}
-
-// SetActivityStreamsTo sets the "to" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) {
- this.ActivityStreamsTo = i
-}
-
-// SetActivityStreamsUpdated sets the "updated" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) {
- this.ActivityStreamsUpdated = i
-}
-
-// SetActivityStreamsUrl sets the "url" property.
-func (this *ActivityStreamsArrive) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) {
- this.ActivityStreamsUrl = i
-}
-
-// SetForgeFedTeam sets the "team" property.
-func (this *ActivityStreamsArrive) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) {
- this.ForgeFedTeam = i
-}
-
-// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property.
-func (this *ActivityStreamsArrive) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) {
- this.ForgeFedTicketsTrackedBy = i
-}
-
-// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property.
-func (this *ActivityStreamsArrive) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) {
- this.ForgeFedTracksTicketsFor = i
-}
-
-// SetJSONLDId sets the "id" property.
-func (this *ActivityStreamsArrive) SetJSONLDId(i vocab.JSONLDIdProperty) {
- this.JSONLDId = i
-}
-
-// SetJSONLDType sets the "type" property.
-func (this *ActivityStreamsArrive) SetJSONLDType(i vocab.JSONLDTypeProperty) {
- this.JSONLDType = i
-}
-
-// VocabularyURI returns the vocabulary's URI as a string.
-func (this ActivityStreamsArrive) VocabularyURI() string {
- return "https://www.w3.org/ns/activitystreams"
-}
-
-// helperJSONLDContext obtains the context uris and their aliases from a property,
-// if it is not nil.
-func (this ActivityStreamsArrive) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string {
- if i == nil {
- return toMerge
- }
- for k, v := range i.JSONLDContext() {
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- toMerge[k] = v
- }
- return toMerge
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_pkg.go
deleted file mode 100644
index 4c0055c5c..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_pkg.go
+++ /dev/null
@@ -1,187 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typearticle
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeObjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsObjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // DeserializeRepliesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsRepliesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go
deleted file mode 100644
index 158c880ad..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go
+++ /dev/null
@@ -1,1732 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typearticle
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "strings"
-)
-
-// Represents any kind of multi-paragraph written work.
-//
-// Example 48 (https://www.w3.org/TR/activitystreams-vocabulary/#ex43-jsonld):
-// {
-// "attributedTo": "http://sally.example.org",
-// "content": "\u003cdiv\u003e... you will never believe
-// ...\u003c/div\u003e",
-// "name": "What a Crazy Day I Had",
-// "type": "Article"
-// }
-type ActivityStreamsArticle struct {
- ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
- ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
- ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
- ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
- ActivityStreamsBcc vocab.ActivityStreamsBccProperty
- ActivityStreamsBto vocab.ActivityStreamsBtoProperty
- ActivityStreamsCc vocab.ActivityStreamsCcProperty
- ActivityStreamsContent vocab.ActivityStreamsContentProperty
- ActivityStreamsContext vocab.ActivityStreamsContextProperty
- ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
- ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
- ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
- ActivityStreamsIcon vocab.ActivityStreamsIconProperty
- JSONLDId vocab.JSONLDIdProperty
- ActivityStreamsImage vocab.ActivityStreamsImageProperty
- ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
- ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
- ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
- ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
- ActivityStreamsName vocab.ActivityStreamsNameProperty
- ActivityStreamsObject vocab.ActivityStreamsObjectProperty
- ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
- ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
- ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
- 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{}
-}
-
-// ActivityStreamsArticleExtends returns true if the Article type extends from the
-// other type.
-func ActivityStreamsArticleExtends(other vocab.Type) bool {
- extensions := []string{"Object"}
- for _, ext := range extensions {
- if ext == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// ArticleIsDisjointWith returns true if the other provided type is disjoint with
-// the Article type.
-func ArticleIsDisjointWith(other vocab.Type) bool {
- disjointWith := []string{"Link", "Mention"}
- for _, disjoint := range disjointWith {
- if disjoint == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// ArticleIsExtendedBy returns true if the other provided type extends from the
-// Article type. Note that it returns false if the types are the same; see the
-// "IsOrExtendsArticle" variant instead.
-func ArticleIsExtendedBy(other vocab.Type) bool {
- // Shortcut implementation: is not extended by anything.
- return false
-}
-
-// DeserializeArticle creates a Article from a map representation that has been
-// unmarshalled from a text or binary format.
-func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsArticle, error) {
- alias := ""
- aliasPrefix := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- aliasPrefix = a + ":"
- }
- this := &ActivityStreamsArticle{
- alias: alias,
- unknown: make(map[string]interface{}),
- }
- if typeValue, ok := m["type"]; !ok {
- return nil, fmt.Errorf("no \"type\" property in map")
- } else if typeString, ok := typeValue.(string); ok {
- typeName := strings.TrimPrefix(typeString, aliasPrefix)
- if typeName != "Article" {
- return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Article", typeName)
- }
- // Fall through, success in finding a proper Type
- } else if arrType, ok := typeValue.([]interface{}); ok {
- found := false
- for _, elemVal := range arrType {
- if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Article" {
- found = true
- break
- }
- }
- if !found {
- return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Article")
- }
- // Fall through, success in finding a proper Type
- } else {
- return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
- }
- // Begin: Known property deserialization
- if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAltitude = p
- }
- if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttachment = p
- }
- if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttributedTo = p
- }
- if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAudience = p
- }
- if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBcc = p
- }
- if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBto = p
- }
- if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsCc = p
- }
- if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContent = p
- }
- if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContext = p
- }
- if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsDuration = p
- }
- if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsEndTime = p
- }
- if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsGenerator = p
- }
- if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsIcon = p
- }
- if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDId = p
- }
- if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsImage = p
- }
- if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInReplyTo = p
- }
- if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLikes = p
- }
- if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLocation = p
- }
- if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsMediaType = p
- }
- if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsName = p
- }
- if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsObject = p
- }
- if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPreview = p
- }
- if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPublished = p
- }
- if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsReplies = p
- }
- if p, err := mgr.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 == "replies" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "team" {
- continue
- } else if k == "ticketsTrackedBy" {
- continue
- } else if k == "to" {
- continue
- } else if k == "tracksTicketsFor" {
- continue
- } else if k == "type" {
- continue
- } else if k == "updated" {
- continue
- } else if k == "url" {
- continue
- } // End: Code that ensures a property name is unknown
-
- this.unknown[k] = v
- }
- // End: Unknown deserialization
-
- return this, nil
-}
-
-// IsOrExtendsArticle returns true if the other provided type is the Article type
-// or extends from the Article type.
-func IsOrExtendsArticle(other vocab.Type) bool {
- if other.GetTypeName() == "Article" {
- return true
- }
- return ArticleIsExtendedBy(other)
-}
-
-// NewActivityStreamsArticle creates a new Article type
-func NewActivityStreamsArticle() *ActivityStreamsArticle {
- typeProp := typePropertyConstructor()
- typeProp.AppendXMLSchemaString("Article")
- return &ActivityStreamsArticle{
- JSONLDType: typeProp,
- alias: "",
- unknown: make(map[string]interface{}),
- }
-}
-
-// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
- return this.ActivityStreamsAltitude
-}
-
-// GetActivityStreamsAttachment returns the "attachment" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty {
- return this.ActivityStreamsAttachment
-}
-
-// GetActivityStreamsAttributedTo returns the "attributedTo" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty {
- return this.ActivityStreamsAttributedTo
-}
-
-// GetActivityStreamsAudience returns the "audience" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty {
- return this.ActivityStreamsAudience
-}
-
-// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty {
- return this.ActivityStreamsBcc
-}
-
-// GetActivityStreamsBto returns the "bto" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty {
- return this.ActivityStreamsBto
-}
-
-// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty {
- return this.ActivityStreamsCc
-}
-
-// GetActivityStreamsContent returns the "content" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty {
- return this.ActivityStreamsContent
-}
-
-// GetActivityStreamsContext returns the "context" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty {
- return this.ActivityStreamsContext
-}
-
-// GetActivityStreamsDuration returns the "duration" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty {
- return this.ActivityStreamsDuration
-}
-
-// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty {
- return this.ActivityStreamsEndTime
-}
-
-// GetActivityStreamsGenerator returns the "generator" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty {
- return this.ActivityStreamsGenerator
-}
-
-// GetActivityStreamsIcon returns the "icon" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty {
- return this.ActivityStreamsIcon
-}
-
-// GetActivityStreamsImage returns the "image" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty {
- return this.ActivityStreamsImage
-}
-
-// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty {
- return this.ActivityStreamsInReplyTo
-}
-
-// GetActivityStreamsLikes returns the "likes" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty {
- return this.ActivityStreamsLikes
-}
-
-// GetActivityStreamsLocation returns the "location" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty {
- return this.ActivityStreamsLocation
-}
-
-// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
- return this.ActivityStreamsMediaType
-}
-
-// GetActivityStreamsName returns the "name" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
- return this.ActivityStreamsName
-}
-
-// GetActivityStreamsObject returns the "object" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty {
- return this.ActivityStreamsObject
-}
-
-// GetActivityStreamsPreview returns the "preview" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty {
- return this.ActivityStreamsPreview
-}
-
-// GetActivityStreamsPublished returns the "published" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty {
- return this.ActivityStreamsPublished
-}
-
-// GetActivityStreamsReplies returns the "replies" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty {
- return this.ActivityStreamsReplies
-}
-
-// GetActivityStreamsShares returns the "shares" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
- return this.ActivityStreamsShares
-}
-
-// GetActivityStreamsSource returns the "source" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty {
- return this.ActivityStreamsSource
-}
-
-// GetActivityStreamsStartTime returns the "startTime" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty {
- return this.ActivityStreamsStartTime
-}
-
-// GetActivityStreamsSummary returns the "summary" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty {
- return this.ActivityStreamsSummary
-}
-
-// GetActivityStreamsTag returns the "tag" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty {
- return this.ActivityStreamsTag
-}
-
-// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsTo() vocab.ActivityStreamsToProperty {
- return this.ActivityStreamsTo
-}
-
-// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty {
- return this.ActivityStreamsUpdated
-}
-
-// GetActivityStreamsUrl returns the "url" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsArticle) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty {
- return this.ActivityStreamsUrl
-}
-
-// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise.
-func (this ActivityStreamsArticle) GetForgeFedTeam() vocab.ForgeFedTeamProperty {
- return this.ForgeFedTeam
-}
-
-// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsArticle) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty {
- return this.ForgeFedTicketsTrackedBy
-}
-
-// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsArticle) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty {
- return this.ForgeFedTracksTicketsFor
-}
-
-// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
-func (this ActivityStreamsArticle) GetJSONLDId() vocab.JSONLDIdProperty {
- return this.JSONLDId
-}
-
-// GetJSONLDType returns the "type" property if it exists, and nil otherwise.
-func (this ActivityStreamsArticle) GetJSONLDType() vocab.JSONLDTypeProperty {
- return this.JSONLDType
-}
-
-// GetTypeName returns the name of this type.
-func (this ActivityStreamsArticle) GetTypeName() string {
- return "Article"
-}
-
-// GetUnknownProperties returns the unknown properties for the Article type. Note
-// that this should not be used by app developers. It is only used to help
-// determine which implementation is LessThan the other. Developers who are
-// creating a different implementation of this type's interface can use this
-// method in their LessThan implementation, but routine ActivityPub
-// applications should not use this to bypass the code generation tool.
-func (this ActivityStreamsArticle) GetUnknownProperties() map[string]interface{} {
- return this.unknown
-}
-
-// IsExtending returns true if the Article type extends from the other type.
-func (this ActivityStreamsArticle) IsExtending(other vocab.Type) bool {
- return ActivityStreamsArticleExtends(other)
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// type and the specific properties that are set. The value in the map is the
-// alias used to import the type and its properties.
-func (this ActivityStreamsArticle) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
- m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContext, m)
- m = this.helperJSONLDContext(this.ActivityStreamsDuration, m)
- m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m)
- m = this.helperJSONLDContext(this.ActivityStreamsIcon, m)
- m = this.helperJSONLDContext(this.JSONLDId, m)
- m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
- m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
- m = this.helperJSONLDContext(this.ActivityStreamsName, m)
- m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
- m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
- m = this.helperJSONLDContext(this.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 Article is lesser, with an arbitrary but stable
-// determination.
-func (this ActivityStreamsArticle) LessThan(o vocab.ActivityStreamsArticle) bool {
- // Begin: Compare known properties
- // Compare property "altitude"
- if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attachment"
- if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attributedTo"
- if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "audience"
- if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bcc"
- if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bto"
- if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "cc"
- if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "content"
- if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "context"
- if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "duration"
- if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "endTime"
- if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "generator"
- if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "icon"
- if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "id"
- if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "image"
- if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "inReplyTo"
- if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "likes"
- if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "location"
- if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "mediaType"
- if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "name"
- if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "object"
- if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "preview"
- if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "published"
- if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "replies"
- if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "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 ActivityStreamsArticle) Serialize() (map[string]interface{}, error) {
- m := make(map[string]interface{})
- typeName := "Article"
- if len(this.alias) > 0 {
- typeName = this.alias + ":" + "Article"
- }
- m["type"] = typeName
- // Begin: Serialize known properties
- // Maybe serialize property "altitude"
- if this.ActivityStreamsAltitude != nil {
- if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAltitude.Name()] = i
- }
- }
- // Maybe serialize property "attachment"
- if this.ActivityStreamsAttachment != nil {
- if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttachment.Name()] = i
- }
- }
- // Maybe serialize property "attributedTo"
- if this.ActivityStreamsAttributedTo != nil {
- if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttributedTo.Name()] = i
- }
- }
- // Maybe serialize property "audience"
- if this.ActivityStreamsAudience != nil {
- if i, err := this.ActivityStreamsAudience.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAudience.Name()] = i
- }
- }
- // Maybe serialize property "bcc"
- if this.ActivityStreamsBcc != nil {
- if i, err := this.ActivityStreamsBcc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBcc.Name()] = i
- }
- }
- // Maybe serialize property "bto"
- if this.ActivityStreamsBto != nil {
- if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBto.Name()] = i
- }
- }
- // Maybe serialize property "cc"
- if this.ActivityStreamsCc != nil {
- if i, err := this.ActivityStreamsCc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsCc.Name()] = i
- }
- }
- // Maybe serialize property "content"
- if this.ActivityStreamsContent != nil {
- if i, err := this.ActivityStreamsContent.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContent.Name()] = i
- }
- }
- // Maybe serialize property "context"
- if this.ActivityStreamsContext != nil {
- if i, err := this.ActivityStreamsContext.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContext.Name()] = i
- }
- }
- // Maybe serialize property "duration"
- if this.ActivityStreamsDuration != nil {
- if i, err := this.ActivityStreamsDuration.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsDuration.Name()] = i
- }
- }
- // Maybe serialize property "endTime"
- if this.ActivityStreamsEndTime != nil {
- if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsEndTime.Name()] = i
- }
- }
- // Maybe serialize property "generator"
- if this.ActivityStreamsGenerator != nil {
- if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsGenerator.Name()] = i
- }
- }
- // Maybe serialize property "icon"
- if this.ActivityStreamsIcon != nil {
- if i, err := this.ActivityStreamsIcon.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsIcon.Name()] = i
- }
- }
- // Maybe serialize property "id"
- if this.JSONLDId != nil {
- if i, err := this.JSONLDId.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.JSONLDId.Name()] = i
- }
- }
- // Maybe serialize property "image"
- if this.ActivityStreamsImage != nil {
- if i, err := this.ActivityStreamsImage.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsImage.Name()] = i
- }
- }
- // Maybe serialize property "inReplyTo"
- if this.ActivityStreamsInReplyTo != nil {
- if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInReplyTo.Name()] = i
- }
- }
- // Maybe serialize property "likes"
- if this.ActivityStreamsLikes != nil {
- if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLikes.Name()] = i
- }
- }
- // Maybe serialize property "location"
- if this.ActivityStreamsLocation != nil {
- if i, err := this.ActivityStreamsLocation.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLocation.Name()] = i
- }
- }
- // Maybe serialize property "mediaType"
- if this.ActivityStreamsMediaType != nil {
- if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsMediaType.Name()] = i
- }
- }
- // Maybe serialize property "name"
- if this.ActivityStreamsName != nil {
- if i, err := this.ActivityStreamsName.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsName.Name()] = i
- }
- }
- // Maybe serialize property "object"
- if this.ActivityStreamsObject != nil {
- if i, err := this.ActivityStreamsObject.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsObject.Name()] = i
- }
- }
- // Maybe serialize property "preview"
- if this.ActivityStreamsPreview != nil {
- if i, err := this.ActivityStreamsPreview.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPreview.Name()] = i
- }
- }
- // Maybe serialize property "published"
- if this.ActivityStreamsPublished != nil {
- if i, err := this.ActivityStreamsPublished.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPublished.Name()] = i
- }
- }
- // Maybe serialize property "replies"
- if this.ActivityStreamsReplies != nil {
- if i, err := this.ActivityStreamsReplies.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsReplies.Name()] = i
- }
- }
- // Maybe serialize property "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 *ActivityStreamsArticle) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
- this.ActivityStreamsAltitude = i
-}
-
-// SetActivityStreamsAttachment sets the "attachment" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) {
- this.ActivityStreamsAttachment = i
-}
-
-// SetActivityStreamsAttributedTo sets the "attributedTo" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) {
- this.ActivityStreamsAttributedTo = i
-}
-
-// SetActivityStreamsAudience sets the "audience" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) {
- this.ActivityStreamsAudience = i
-}
-
-// SetActivityStreamsBcc sets the "bcc" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) {
- this.ActivityStreamsBcc = i
-}
-
-// SetActivityStreamsBto sets the "bto" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) {
- this.ActivityStreamsBto = i
-}
-
-// SetActivityStreamsCc sets the "cc" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) {
- this.ActivityStreamsCc = i
-}
-
-// SetActivityStreamsContent sets the "content" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) {
- this.ActivityStreamsContent = i
-}
-
-// SetActivityStreamsContext sets the "context" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) {
- this.ActivityStreamsContext = i
-}
-
-// SetActivityStreamsDuration sets the "duration" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) {
- this.ActivityStreamsDuration = i
-}
-
-// SetActivityStreamsEndTime sets the "endTime" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) {
- this.ActivityStreamsEndTime = i
-}
-
-// SetActivityStreamsGenerator sets the "generator" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) {
- this.ActivityStreamsGenerator = i
-}
-
-// SetActivityStreamsIcon sets the "icon" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) {
- this.ActivityStreamsIcon = i
-}
-
-// SetActivityStreamsImage sets the "image" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) {
- this.ActivityStreamsImage = i
-}
-
-// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) {
- this.ActivityStreamsInReplyTo = i
-}
-
-// SetActivityStreamsLikes sets the "likes" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) {
- this.ActivityStreamsLikes = i
-}
-
-// SetActivityStreamsLocation sets the "location" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) {
- this.ActivityStreamsLocation = i
-}
-
-// SetActivityStreamsMediaType sets the "mediaType" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
- this.ActivityStreamsMediaType = i
-}
-
-// SetActivityStreamsName sets the "name" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
- this.ActivityStreamsName = i
-}
-
-// SetActivityStreamsObject sets the "object" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) {
- this.ActivityStreamsObject = i
-}
-
-// SetActivityStreamsPreview sets the "preview" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) {
- this.ActivityStreamsPreview = i
-}
-
-// SetActivityStreamsPublished sets the "published" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) {
- this.ActivityStreamsPublished = i
-}
-
-// SetActivityStreamsReplies sets the "replies" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) {
- this.ActivityStreamsReplies = i
-}
-
-// SetActivityStreamsShares sets the "shares" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
- this.ActivityStreamsShares = i
-}
-
-// SetActivityStreamsSource sets the "source" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) {
- this.ActivityStreamsSource = i
-}
-
-// SetActivityStreamsStartTime sets the "startTime" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) {
- this.ActivityStreamsStartTime = i
-}
-
-// SetActivityStreamsSummary sets the "summary" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) {
- this.ActivityStreamsSummary = i
-}
-
-// SetActivityStreamsTag sets the "tag" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) {
- this.ActivityStreamsTag = i
-}
-
-// SetActivityStreamsTo sets the "to" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) {
- this.ActivityStreamsTo = i
-}
-
-// SetActivityStreamsUpdated sets the "updated" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) {
- this.ActivityStreamsUpdated = i
-}
-
-// SetActivityStreamsUrl sets the "url" property.
-func (this *ActivityStreamsArticle) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) {
- this.ActivityStreamsUrl = i
-}
-
-// SetForgeFedTeam sets the "team" property.
-func (this *ActivityStreamsArticle) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) {
- this.ForgeFedTeam = i
-}
-
-// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property.
-func (this *ActivityStreamsArticle) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) {
- this.ForgeFedTicketsTrackedBy = i
-}
-
-// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property.
-func (this *ActivityStreamsArticle) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) {
- this.ForgeFedTracksTicketsFor = i
-}
-
-// SetJSONLDId sets the "id" property.
-func (this *ActivityStreamsArticle) SetJSONLDId(i vocab.JSONLDIdProperty) {
- this.JSONLDId = i
-}
-
-// SetJSONLDType sets the "type" property.
-func (this *ActivityStreamsArticle) SetJSONLDType(i vocab.JSONLDTypeProperty) {
- this.JSONLDType = i
-}
-
-// VocabularyURI returns the vocabulary's URI as a string.
-func (this ActivityStreamsArticle) VocabularyURI() string {
- return "https://www.w3.org/ns/activitystreams"
-}
-
-// helperJSONLDContext obtains the context uris and their aliases from a property,
-// if it is not nil.
-func (this ActivityStreamsArticle) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string {
- if i == nil {
- return toMerge
- }
- for k, v := range i.JSONLDContext() {
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- toMerge[k] = v
- }
- return toMerge
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_pkg.go
deleted file mode 100644
index ece118158..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_pkg.go
+++ /dev/null
@@ -1,191 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeaudio
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
- // DeserializeAttachmentPropertyActivityStreams returns the
- // deserialization method for the "ActivityStreamsAttachmentProperty"
- // non-functional property in the vocabulary "ActivityStreams"
- DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
- // DeserializeAttributedToPropertyActivityStreams returns the
- // deserialization method for the
- // "ActivityStreamsAttributedToProperty" non-functional property in
- // the vocabulary "ActivityStreams"
- DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
- // DeserializeAudiencePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAudienceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
- // DeserializeBccPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBccProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
- // DeserializeBlurhashPropertyToot returns the deserialization method for
- // the "TootBlurhashProperty" non-functional property in the
- // vocabulary "Toot"
- DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error)
- // DeserializeBtoPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsBtoProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
- // DeserializeCcPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsCcProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
- // DeserializeContentPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContentProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
- // DeserializeContextPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsContextProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
- // DeserializeDurationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsDurationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
- // DeserializeEndTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsEndTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
- // DeserializeGeneratorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsGeneratorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
- // DeserializeIconPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsIconProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
- // DeserializeIdPropertyJSONLD returns the deserialization method for the
- // "JSONLDIdProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
- // DeserializeImagePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsImageProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
- // DeserializeInReplyToPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsInReplyToProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
- // DeserializeLikesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLikesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
- // DeserializeLocationPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsLocationProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
- // DeserializeMediaTypePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsMediaTypeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
- // DeserializeNamePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsNameProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
- // DeserializeObjectPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsObjectProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
- // DeserializePreviewPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPreviewProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
- // DeserializePublishedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsPublishedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
- // DeserializeRepliesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsRepliesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
- // DeserializeSharesPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSharesProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
- // DeserializeSourcePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSourceProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
- // DeserializeStartTimePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsStartTimeProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
- // DeserializeSummaryPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsSummaryProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
- // DeserializeTagPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsTagProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
- // DeserializeTeamPropertyForgeFed returns the deserialization method for
- // the "ForgeFedTeamProperty" non-functional property in the
- // vocabulary "ForgeFed"
- DeserializeTeamPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTeamProperty, error)
- // DeserializeTicketsTrackedByPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTicketsTrackedByProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTicketsTrackedByPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketsTrackedByProperty, error)
- // DeserializeToPropertyActivityStreams returns the deserialization method
- // for the "ActivityStreamsToProperty" non-functional property in the
- // vocabulary "ActivityStreams"
- DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
- // DeserializeTracksTicketsForPropertyForgeFed returns the deserialization
- // method for the "ForgeFedTracksTicketsForProperty" non-functional
- // property in the vocabulary "ForgeFed"
- DeserializeTracksTicketsForPropertyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTracksTicketsForProperty, error)
- // DeserializeTypePropertyJSONLD returns the deserialization method for
- // the "JSONLDTypeProperty" non-functional property in the vocabulary
- // "JSONLD"
- DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
- // DeserializeUpdatedPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUpdatedProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
- // DeserializeUrlPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsUrlProperty" non-functional property
- // in the vocabulary "ActivityStreams"
- DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
-}
-
-// jsonldContexter is a private interface to determine the JSON-LD contexts and
-// aliases needed for functional and non-functional properties. It is a helper
-// interface for this implementation.
-type jsonldContexter interface {
- // JSONLDContext returns the JSONLD URIs required in the context string
- // for this property and the specific values that are set. The value
- // in the map is the alias used to import the property's value or
- // values.
- JSONLDContext() map[string]string
-}
-
-// SetManager sets the manager package-global variable. For internal use only, do
-// not use as part of Application behavior. Must be called at golang init time.
-func SetManager(m privateManager) {
- mgr = m
-}
-
-// SetTypePropertyConstructor sets the "type" property's constructor in the
-// package-global variable. For internal use only, do not use as part of
-// Application behavior. Must be called at golang init time. Permits
-// ActivityStreams types to correctly set their "type" property at
-// construction time, so users don't have to remember to do so each time. It
-// is dependency injected so other go-fed compatible implementations could
-// inject their own type.
-func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) {
- typePropertyConstructor = f
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go
deleted file mode 100644
index 30a004090..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go
+++ /dev/null
@@ -1,1775 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeaudio
-
-import (
- "fmt"
- vocab "github.com/go-fed/activity/streams/vocab"
- "strings"
-)
-
-// Represents an audio document of any kind.
-//
-// Example 50 (https://www.w3.org/TR/activitystreams-vocabulary/#ex49-jsonld):
-// {
-// "name": "Interview With A Famous Technologist",
-// "type": "Audio",
-// "url": {
-// "mediaType": "audio/mp3",
-// "type": "owl:Class",
-// "url": "http://example.org/podcast.mp3"
-// }
-// }
-type ActivityStreamsAudio struct {
- ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
- ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
- ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
- ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
- ActivityStreamsBcc vocab.ActivityStreamsBccProperty
- TootBlurhash vocab.TootBlurhashProperty
- ActivityStreamsBto vocab.ActivityStreamsBtoProperty
- ActivityStreamsCc vocab.ActivityStreamsCcProperty
- ActivityStreamsContent vocab.ActivityStreamsContentProperty
- ActivityStreamsContext vocab.ActivityStreamsContextProperty
- ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
- ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
- ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
- ActivityStreamsIcon vocab.ActivityStreamsIconProperty
- JSONLDId vocab.JSONLDIdProperty
- ActivityStreamsImage vocab.ActivityStreamsImageProperty
- ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
- ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
- ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
- ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
- ActivityStreamsName vocab.ActivityStreamsNameProperty
- ActivityStreamsObject vocab.ActivityStreamsObjectProperty
- ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
- ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
- ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
- ActivityStreamsShares vocab.ActivityStreamsSharesProperty
- ActivityStreamsSource vocab.ActivityStreamsSourceProperty
- ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
- ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty
- ActivityStreamsTag vocab.ActivityStreamsTagProperty
- ForgeFedTeam vocab.ForgeFedTeamProperty
- ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty
- ActivityStreamsTo vocab.ActivityStreamsToProperty
- ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty
- JSONLDType vocab.JSONLDTypeProperty
- ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty
- ActivityStreamsUrl vocab.ActivityStreamsUrlProperty
- alias string
- unknown map[string]interface{}
-}
-
-// ActivityStreamsAudioExtends returns true if the Audio type extends from the
-// other type.
-func ActivityStreamsAudioExtends(other vocab.Type) bool {
- extensions := []string{"Document", "Object"}
- for _, ext := range extensions {
- if ext == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// AudioIsDisjointWith returns true if the other provided type is disjoint with
-// the Audio type.
-func AudioIsDisjointWith(other vocab.Type) bool {
- disjointWith := []string{"Link", "Mention"}
- for _, disjoint := range disjointWith {
- if disjoint == other.GetTypeName() {
- return true
- }
- }
- return false
-}
-
-// AudioIsExtendedBy returns true if the other provided type extends from the
-// Audio type. Note that it returns false if the types are the same; see the
-// "IsOrExtendsAudio" variant instead.
-func AudioIsExtendedBy(other vocab.Type) bool {
- // Shortcut implementation: is not extended by anything.
- return false
-}
-
-// DeserializeAudio creates a Audio from a map representation that has been
-// unmarshalled from a text or binary format.
-func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsAudio, error) {
- alias := ""
- aliasPrefix := ""
- if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
- alias = a
- aliasPrefix = a + ":"
- }
- this := &ActivityStreamsAudio{
- alias: alias,
- unknown: make(map[string]interface{}),
- }
- if typeValue, ok := m["type"]; !ok {
- return nil, fmt.Errorf("no \"type\" property in map")
- } else if typeString, ok := typeValue.(string); ok {
- typeName := strings.TrimPrefix(typeString, aliasPrefix)
- if typeName != "Audio" {
- return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Audio", typeName)
- }
- // Fall through, success in finding a proper Type
- } else if arrType, ok := typeValue.([]interface{}); ok {
- found := false
- for _, elemVal := range arrType {
- if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Audio" {
- found = true
- break
- }
- }
- if !found {
- return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Audio")
- }
- // Fall through, success in finding a proper Type
- } else {
- return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
- }
- // Begin: Known property deserialization
- if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAltitude = p
- }
- if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttachment = p
- }
- if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAttributedTo = p
- }
- if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsAudience = p
- }
- if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBcc = p
- }
- if p, err := mgr.DeserializeBlurhashPropertyToot()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.TootBlurhash = p
- }
- if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsBto = p
- }
- if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsCc = p
- }
- if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContent = p
- }
- if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsContext = p
- }
- if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsDuration = p
- }
- if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsEndTime = p
- }
- if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsGenerator = p
- }
- if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsIcon = p
- }
- if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDId = p
- }
- if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsImage = p
- }
- if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsInReplyTo = p
- }
- if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLikes = p
- }
- if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsLocation = p
- }
- if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsMediaType = p
- }
- if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsName = p
- }
- if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsObject = p
- }
- if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPreview = p
- }
- if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsPublished = p
- }
- if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsReplies = p
- }
- if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsShares = p
- }
- if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSource = p
- }
- if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsStartTime = p
- }
- if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsSummary = p
- }
- if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTag = p
- }
- if p, err := mgr.DeserializeTeamPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTeam = p
- }
- if p, err := mgr.DeserializeTicketsTrackedByPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTicketsTrackedBy = p
- }
- if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsTo = p
- }
- if p, err := mgr.DeserializeTracksTicketsForPropertyForgeFed()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ForgeFedTracksTicketsFor = p
- }
- if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.JSONLDType = p
- }
- if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsUpdated = p
- }
- if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil {
- return nil, err
- } else if p != nil {
- this.ActivityStreamsUrl = p
- }
- // End: Known property deserialization
-
- // Begin: Unknown deserialization
- for k, v := range m {
- // Begin: Code that ensures a property name is unknown
- if k == "altitude" {
- continue
- } else if k == "attachment" {
- continue
- } else if k == "attributedTo" {
- continue
- } else if k == "audience" {
- continue
- } else if k == "bcc" {
- continue
- } else if k == "blurhash" {
- continue
- } else if k == "bto" {
- continue
- } else if k == "cc" {
- continue
- } else if k == "content" {
- continue
- } else if k == "contentMap" {
- continue
- } else if k == "context" {
- continue
- } else if k == "duration" {
- continue
- } else if k == "endTime" {
- continue
- } else if k == "generator" {
- continue
- } else if k == "icon" {
- continue
- } else if k == "id" {
- continue
- } else if k == "image" {
- continue
- } else if k == "inReplyTo" {
- continue
- } else if k == "likes" {
- continue
- } else if k == "location" {
- continue
- } else if k == "mediaType" {
- continue
- } else if k == "name" {
- continue
- } else if k == "nameMap" {
- continue
- } else if k == "object" {
- continue
- } else if k == "preview" {
- continue
- } else if k == "published" {
- continue
- } else if k == "replies" {
- continue
- } else if k == "shares" {
- continue
- } else if k == "source" {
- continue
- } else if k == "startTime" {
- continue
- } else if k == "summary" {
- continue
- } else if k == "summaryMap" {
- continue
- } else if k == "tag" {
- continue
- } else if k == "team" {
- continue
- } else if k == "ticketsTrackedBy" {
- continue
- } else if k == "to" {
- continue
- } else if k == "tracksTicketsFor" {
- continue
- } else if k == "type" {
- continue
- } else if k == "updated" {
- continue
- } else if k == "url" {
- continue
- } // End: Code that ensures a property name is unknown
-
- this.unknown[k] = v
- }
- // End: Unknown deserialization
-
- return this, nil
-}
-
-// IsOrExtendsAudio returns true if the other provided type is the Audio type or
-// extends from the Audio type.
-func IsOrExtendsAudio(other vocab.Type) bool {
- if other.GetTypeName() == "Audio" {
- return true
- }
- return AudioIsExtendedBy(other)
-}
-
-// NewActivityStreamsAudio creates a new Audio type
-func NewActivityStreamsAudio() *ActivityStreamsAudio {
- typeProp := typePropertyConstructor()
- typeProp.AppendXMLSchemaString("Audio")
- return &ActivityStreamsAudio{
- JSONLDType: typeProp,
- alias: "",
- unknown: make(map[string]interface{}),
- }
-}
-
-// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
- return this.ActivityStreamsAltitude
-}
-
-// GetActivityStreamsAttachment returns the "attachment" property if it exists,
-// and nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty {
- return this.ActivityStreamsAttachment
-}
-
-// GetActivityStreamsAttributedTo returns the "attributedTo" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty {
- return this.ActivityStreamsAttributedTo
-}
-
-// GetActivityStreamsAudience returns the "audience" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty {
- return this.ActivityStreamsAudience
-}
-
-// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty {
- return this.ActivityStreamsBcc
-}
-
-// GetActivityStreamsBto returns the "bto" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty {
- return this.ActivityStreamsBto
-}
-
-// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty {
- return this.ActivityStreamsCc
-}
-
-// GetActivityStreamsContent returns the "content" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty {
- return this.ActivityStreamsContent
-}
-
-// GetActivityStreamsContext returns the "context" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty {
- return this.ActivityStreamsContext
-}
-
-// GetActivityStreamsDuration returns the "duration" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty {
- return this.ActivityStreamsDuration
-}
-
-// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty {
- return this.ActivityStreamsEndTime
-}
-
-// GetActivityStreamsGenerator returns the "generator" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty {
- return this.ActivityStreamsGenerator
-}
-
-// GetActivityStreamsIcon returns the "icon" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty {
- return this.ActivityStreamsIcon
-}
-
-// GetActivityStreamsImage returns the "image" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty {
- return this.ActivityStreamsImage
-}
-
-// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty {
- return this.ActivityStreamsInReplyTo
-}
-
-// GetActivityStreamsLikes returns the "likes" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty {
- return this.ActivityStreamsLikes
-}
-
-// GetActivityStreamsLocation returns the "location" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty {
- return this.ActivityStreamsLocation
-}
-
-// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
- return this.ActivityStreamsMediaType
-}
-
-// GetActivityStreamsName returns the "name" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
- return this.ActivityStreamsName
-}
-
-// GetActivityStreamsObject returns the "object" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty {
- return this.ActivityStreamsObject
-}
-
-// GetActivityStreamsPreview returns the "preview" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty {
- return this.ActivityStreamsPreview
-}
-
-// GetActivityStreamsPublished returns the "published" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty {
- return this.ActivityStreamsPublished
-}
-
-// GetActivityStreamsReplies returns the "replies" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty {
- return this.ActivityStreamsReplies
-}
-
-// GetActivityStreamsShares returns the "shares" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
- return this.ActivityStreamsShares
-}
-
-// GetActivityStreamsSource returns the "source" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty {
- return this.ActivityStreamsSource
-}
-
-// GetActivityStreamsStartTime returns the "startTime" property if it exists, and
-// nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty {
- return this.ActivityStreamsStartTime
-}
-
-// GetActivityStreamsSummary returns the "summary" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty {
- return this.ActivityStreamsSummary
-}
-
-// GetActivityStreamsTag returns the "tag" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty {
- return this.ActivityStreamsTag
-}
-
-// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsTo() vocab.ActivityStreamsToProperty {
- return this.ActivityStreamsTo
-}
-
-// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty {
- return this.ActivityStreamsUpdated
-}
-
-// GetActivityStreamsUrl returns the "url" property if it exists, and nil
-// otherwise.
-func (this ActivityStreamsAudio) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty {
- return this.ActivityStreamsUrl
-}
-
-// GetForgeFedTeam returns the "team" property if it exists, and nil otherwise.
-func (this ActivityStreamsAudio) GetForgeFedTeam() vocab.ForgeFedTeamProperty {
- return this.ForgeFedTeam
-}
-
-// GetForgeFedTicketsTrackedBy returns the "ticketsTrackedBy" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAudio) GetForgeFedTicketsTrackedBy() vocab.ForgeFedTicketsTrackedByProperty {
- return this.ForgeFedTicketsTrackedBy
-}
-
-// GetForgeFedTracksTicketsFor returns the "tracksTicketsFor" property if it
-// exists, and nil otherwise.
-func (this ActivityStreamsAudio) GetForgeFedTracksTicketsFor() vocab.ForgeFedTracksTicketsForProperty {
- return this.ForgeFedTracksTicketsFor
-}
-
-// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
-func (this ActivityStreamsAudio) GetJSONLDId() vocab.JSONLDIdProperty {
- return this.JSONLDId
-}
-
-// GetJSONLDType returns the "type" property if it exists, and nil otherwise.
-func (this ActivityStreamsAudio) GetJSONLDType() vocab.JSONLDTypeProperty {
- return this.JSONLDType
-}
-
-// GetTootBlurhash returns the "blurhash" property if it exists, and nil otherwise.
-func (this ActivityStreamsAudio) GetTootBlurhash() vocab.TootBlurhashProperty {
- return this.TootBlurhash
-}
-
-// GetTypeName returns the name of this type.
-func (this ActivityStreamsAudio) GetTypeName() string {
- return "Audio"
-}
-
-// GetUnknownProperties returns the unknown properties for the Audio type. Note
-// that this should not be used by app developers. It is only used to help
-// determine which implementation is LessThan the other. Developers who are
-// creating a different implementation of this type's interface can use this
-// method in their LessThan implementation, but routine ActivityPub
-// applications should not use this to bypass the code generation tool.
-func (this ActivityStreamsAudio) GetUnknownProperties() map[string]interface{} {
- return this.unknown
-}
-
-// IsExtending returns true if the Audio type extends from the other type.
-func (this ActivityStreamsAudio) IsExtending(other vocab.Type) bool {
- return ActivityStreamsAudioExtends(other)
-}
-
-// JSONLDContext returns the JSONLD URIs required in the context string for this
-// type and the specific properties that are set. The value in the map is the
-// alias used to import the type and its properties.
-func (this ActivityStreamsAudio) JSONLDContext() map[string]string {
- m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
- m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
- m = this.helperJSONLDContext(this.TootBlurhash, m)
- m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
- m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
- m = this.helperJSONLDContext(this.ActivityStreamsContext, m)
- m = this.helperJSONLDContext(this.ActivityStreamsDuration, m)
- m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m)
- m = this.helperJSONLDContext(this.ActivityStreamsIcon, m)
- m = this.helperJSONLDContext(this.JSONLDId, m)
- m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
- m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
- m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
- m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
- m = this.helperJSONLDContext(this.ActivityStreamsName, m)
- m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
- m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
- m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
- m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
- m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
- m = this.helperJSONLDContext(this.ActivityStreamsSummary, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTag, m)
- m = this.helperJSONLDContext(this.ForgeFedTeam, m)
- m = this.helperJSONLDContext(this.ForgeFedTicketsTrackedBy, m)
- m = this.helperJSONLDContext(this.ActivityStreamsTo, m)
- m = this.helperJSONLDContext(this.ForgeFedTracksTicketsFor, m)
- m = this.helperJSONLDContext(this.JSONLDType, m)
- m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m)
- m = this.helperJSONLDContext(this.ActivityStreamsUrl, m)
-
- return m
-}
-
-// LessThan computes if this Audio is lesser, with an arbitrary but stable
-// determination.
-func (this ActivityStreamsAudio) LessThan(o vocab.ActivityStreamsAudio) bool {
- // Begin: Compare known properties
- // Compare property "altitude"
- if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attachment"
- if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "attributedTo"
- if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "audience"
- if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bcc"
- if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "blurhash"
- if lhs, rhs := this.TootBlurhash, o.GetTootBlurhash(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "bto"
- if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "cc"
- if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "content"
- if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "context"
- if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "duration"
- if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "endTime"
- if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "generator"
- if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "icon"
- if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "id"
- if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "image"
- if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "inReplyTo"
- if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "likes"
- if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "location"
- if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "mediaType"
- if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "name"
- if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "object"
- if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "preview"
- if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "published"
- if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "replies"
- if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "shares"
- if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "source"
- if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "startTime"
- if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "summary"
- if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tag"
- if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "team"
- if lhs, rhs := this.ForgeFedTeam, o.GetForgeFedTeam(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "ticketsTrackedBy"
- if lhs, rhs := this.ForgeFedTicketsTrackedBy, o.GetForgeFedTicketsTrackedBy(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "to"
- if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "tracksTicketsFor"
- if lhs, rhs := this.ForgeFedTracksTicketsFor, o.GetForgeFedTracksTicketsFor(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "type"
- if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "updated"
- if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // Compare property "url"
- if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil {
- if lhs.LessThan(rhs) {
- return true
- } else if rhs.LessThan(lhs) {
- return false
- }
- } else if lhs == nil && rhs != nil {
- // Nil is less than anything else
- return true
- } else if rhs != nil && rhs == nil {
- // Anything else is greater than nil
- return false
- } // Else: Both are nil
- // End: Compare known properties
-
- // Begin: Compare unknown properties (only by number of them)
- if len(this.unknown) < len(o.GetUnknownProperties()) {
- return true
- } else if len(o.GetUnknownProperties()) < len(this.unknown) {
- return false
- } // End: Compare unknown properties (only by number of them)
-
- // All properties are the same.
- return false
-}
-
-// Serialize converts this into an interface representation suitable for
-// marshalling into a text or binary format.
-func (this ActivityStreamsAudio) Serialize() (map[string]interface{}, error) {
- m := make(map[string]interface{})
- typeName := "Audio"
- if len(this.alias) > 0 {
- typeName = this.alias + ":" + "Audio"
- }
- m["type"] = typeName
- // Begin: Serialize known properties
- // Maybe serialize property "altitude"
- if this.ActivityStreamsAltitude != nil {
- if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAltitude.Name()] = i
- }
- }
- // Maybe serialize property "attachment"
- if this.ActivityStreamsAttachment != nil {
- if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttachment.Name()] = i
- }
- }
- // Maybe serialize property "attributedTo"
- if this.ActivityStreamsAttributedTo != nil {
- if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAttributedTo.Name()] = i
- }
- }
- // Maybe serialize property "audience"
- if this.ActivityStreamsAudience != nil {
- if i, err := this.ActivityStreamsAudience.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsAudience.Name()] = i
- }
- }
- // Maybe serialize property "bcc"
- if this.ActivityStreamsBcc != nil {
- if i, err := this.ActivityStreamsBcc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBcc.Name()] = i
- }
- }
- // Maybe serialize property "blurhash"
- if this.TootBlurhash != nil {
- if i, err := this.TootBlurhash.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.TootBlurhash.Name()] = i
- }
- }
- // Maybe serialize property "bto"
- if this.ActivityStreamsBto != nil {
- if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsBto.Name()] = i
- }
- }
- // Maybe serialize property "cc"
- if this.ActivityStreamsCc != nil {
- if i, err := this.ActivityStreamsCc.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsCc.Name()] = i
- }
- }
- // Maybe serialize property "content"
- if this.ActivityStreamsContent != nil {
- if i, err := this.ActivityStreamsContent.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContent.Name()] = i
- }
- }
- // Maybe serialize property "context"
- if this.ActivityStreamsContext != nil {
- if i, err := this.ActivityStreamsContext.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsContext.Name()] = i
- }
- }
- // Maybe serialize property "duration"
- if this.ActivityStreamsDuration != nil {
- if i, err := this.ActivityStreamsDuration.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsDuration.Name()] = i
- }
- }
- // Maybe serialize property "endTime"
- if this.ActivityStreamsEndTime != nil {
- if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsEndTime.Name()] = i
- }
- }
- // Maybe serialize property "generator"
- if this.ActivityStreamsGenerator != nil {
- if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsGenerator.Name()] = i
- }
- }
- // Maybe serialize property "icon"
- if this.ActivityStreamsIcon != nil {
- if i, err := this.ActivityStreamsIcon.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsIcon.Name()] = i
- }
- }
- // Maybe serialize property "id"
- if this.JSONLDId != nil {
- if i, err := this.JSONLDId.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.JSONLDId.Name()] = i
- }
- }
- // Maybe serialize property "image"
- if this.ActivityStreamsImage != nil {
- if i, err := this.ActivityStreamsImage.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsImage.Name()] = i
- }
- }
- // Maybe serialize property "inReplyTo"
- if this.ActivityStreamsInReplyTo != nil {
- if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsInReplyTo.Name()] = i
- }
- }
- // Maybe serialize property "likes"
- if this.ActivityStreamsLikes != nil {
- if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLikes.Name()] = i
- }
- }
- // Maybe serialize property "location"
- if this.ActivityStreamsLocation != nil {
- if i, err := this.ActivityStreamsLocation.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsLocation.Name()] = i
- }
- }
- // Maybe serialize property "mediaType"
- if this.ActivityStreamsMediaType != nil {
- if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsMediaType.Name()] = i
- }
- }
- // Maybe serialize property "name"
- if this.ActivityStreamsName != nil {
- if i, err := this.ActivityStreamsName.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsName.Name()] = i
- }
- }
- // Maybe serialize property "object"
- if this.ActivityStreamsObject != nil {
- if i, err := this.ActivityStreamsObject.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsObject.Name()] = i
- }
- }
- // Maybe serialize property "preview"
- if this.ActivityStreamsPreview != nil {
- if i, err := this.ActivityStreamsPreview.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPreview.Name()] = i
- }
- }
- // Maybe serialize property "published"
- if this.ActivityStreamsPublished != nil {
- if i, err := this.ActivityStreamsPublished.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsPublished.Name()] = i
- }
- }
- // Maybe serialize property "replies"
- if this.ActivityStreamsReplies != nil {
- if i, err := this.ActivityStreamsReplies.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsReplies.Name()] = i
- }
- }
- // Maybe serialize property "shares"
- if this.ActivityStreamsShares != nil {
- if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsShares.Name()] = i
- }
- }
- // Maybe serialize property "source"
- if this.ActivityStreamsSource != nil {
- if i, err := this.ActivityStreamsSource.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSource.Name()] = i
- }
- }
- // Maybe serialize property "startTime"
- if this.ActivityStreamsStartTime != nil {
- if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsStartTime.Name()] = i
- }
- }
- // Maybe serialize property "summary"
- if this.ActivityStreamsSummary != nil {
- if i, err := this.ActivityStreamsSummary.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsSummary.Name()] = i
- }
- }
- // Maybe serialize property "tag"
- if this.ActivityStreamsTag != nil {
- if i, err := this.ActivityStreamsTag.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTag.Name()] = i
- }
- }
- // Maybe serialize property "team"
- if this.ForgeFedTeam != nil {
- if i, err := this.ForgeFedTeam.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ForgeFedTeam.Name()] = i
- }
- }
- // Maybe serialize property "ticketsTrackedBy"
- if this.ForgeFedTicketsTrackedBy != nil {
- if i, err := this.ForgeFedTicketsTrackedBy.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ForgeFedTicketsTrackedBy.Name()] = i
- }
- }
- // Maybe serialize property "to"
- if this.ActivityStreamsTo != nil {
- if i, err := this.ActivityStreamsTo.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsTo.Name()] = i
- }
- }
- // Maybe serialize property "tracksTicketsFor"
- if this.ForgeFedTracksTicketsFor != nil {
- if i, err := this.ForgeFedTracksTicketsFor.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ForgeFedTracksTicketsFor.Name()] = i
- }
- }
- // Maybe serialize property "type"
- if this.JSONLDType != nil {
- if i, err := this.JSONLDType.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.JSONLDType.Name()] = i
- }
- }
- // Maybe serialize property "updated"
- if this.ActivityStreamsUpdated != nil {
- if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsUpdated.Name()] = i
- }
- }
- // Maybe serialize property "url"
- if this.ActivityStreamsUrl != nil {
- if i, err := this.ActivityStreamsUrl.Serialize(); err != nil {
- return nil, err
- } else if i != nil {
- m[this.ActivityStreamsUrl.Name()] = i
- }
- }
- // End: Serialize known properties
-
- // Begin: Serialize unknown properties
- for k, v := range this.unknown {
- // To be safe, ensure we aren't overwriting a known property
- if _, has := m[k]; !has {
- m[k] = v
- }
- }
- // End: Serialize unknown properties
-
- return m, nil
-}
-
-// SetActivityStreamsAltitude sets the "altitude" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
- this.ActivityStreamsAltitude = i
-}
-
-// SetActivityStreamsAttachment sets the "attachment" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) {
- this.ActivityStreamsAttachment = i
-}
-
-// SetActivityStreamsAttributedTo sets the "attributedTo" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) {
- this.ActivityStreamsAttributedTo = i
-}
-
-// SetActivityStreamsAudience sets the "audience" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) {
- this.ActivityStreamsAudience = i
-}
-
-// SetActivityStreamsBcc sets the "bcc" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) {
- this.ActivityStreamsBcc = i
-}
-
-// SetActivityStreamsBto sets the "bto" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) {
- this.ActivityStreamsBto = i
-}
-
-// SetActivityStreamsCc sets the "cc" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) {
- this.ActivityStreamsCc = i
-}
-
-// SetActivityStreamsContent sets the "content" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) {
- this.ActivityStreamsContent = i
-}
-
-// SetActivityStreamsContext sets the "context" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) {
- this.ActivityStreamsContext = i
-}
-
-// SetActivityStreamsDuration sets the "duration" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) {
- this.ActivityStreamsDuration = i
-}
-
-// SetActivityStreamsEndTime sets the "endTime" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) {
- this.ActivityStreamsEndTime = i
-}
-
-// SetActivityStreamsGenerator sets the "generator" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) {
- this.ActivityStreamsGenerator = i
-}
-
-// SetActivityStreamsIcon sets the "icon" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) {
- this.ActivityStreamsIcon = i
-}
-
-// SetActivityStreamsImage sets the "image" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) {
- this.ActivityStreamsImage = i
-}
-
-// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) {
- this.ActivityStreamsInReplyTo = i
-}
-
-// SetActivityStreamsLikes sets the "likes" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) {
- this.ActivityStreamsLikes = i
-}
-
-// SetActivityStreamsLocation sets the "location" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) {
- this.ActivityStreamsLocation = i
-}
-
-// SetActivityStreamsMediaType sets the "mediaType" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
- this.ActivityStreamsMediaType = i
-}
-
-// SetActivityStreamsName sets the "name" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
- this.ActivityStreamsName = i
-}
-
-// SetActivityStreamsObject sets the "object" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) {
- this.ActivityStreamsObject = i
-}
-
-// SetActivityStreamsPreview sets the "preview" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) {
- this.ActivityStreamsPreview = i
-}
-
-// SetActivityStreamsPublished sets the "published" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) {
- this.ActivityStreamsPublished = i
-}
-
-// SetActivityStreamsReplies sets the "replies" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) {
- this.ActivityStreamsReplies = i
-}
-
-// SetActivityStreamsShares sets the "shares" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
- this.ActivityStreamsShares = i
-}
-
-// SetActivityStreamsSource sets the "source" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) {
- this.ActivityStreamsSource = i
-}
-
-// SetActivityStreamsStartTime sets the "startTime" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) {
- this.ActivityStreamsStartTime = i
-}
-
-// SetActivityStreamsSummary sets the "summary" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) {
- this.ActivityStreamsSummary = i
-}
-
-// SetActivityStreamsTag sets the "tag" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) {
- this.ActivityStreamsTag = i
-}
-
-// SetActivityStreamsTo sets the "to" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) {
- this.ActivityStreamsTo = i
-}
-
-// SetActivityStreamsUpdated sets the "updated" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) {
- this.ActivityStreamsUpdated = i
-}
-
-// SetActivityStreamsUrl sets the "url" property.
-func (this *ActivityStreamsAudio) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) {
- this.ActivityStreamsUrl = i
-}
-
-// SetForgeFedTeam sets the "team" property.
-func (this *ActivityStreamsAudio) SetForgeFedTeam(i vocab.ForgeFedTeamProperty) {
- this.ForgeFedTeam = i
-}
-
-// SetForgeFedTicketsTrackedBy sets the "ticketsTrackedBy" property.
-func (this *ActivityStreamsAudio) SetForgeFedTicketsTrackedBy(i vocab.ForgeFedTicketsTrackedByProperty) {
- this.ForgeFedTicketsTrackedBy = i
-}
-
-// SetForgeFedTracksTicketsFor sets the "tracksTicketsFor" property.
-func (this *ActivityStreamsAudio) SetForgeFedTracksTicketsFor(i vocab.ForgeFedTracksTicketsForProperty) {
- this.ForgeFedTracksTicketsFor = i
-}
-
-// SetJSONLDId sets the "id" property.
-func (this *ActivityStreamsAudio) SetJSONLDId(i vocab.JSONLDIdProperty) {
- this.JSONLDId = i
-}
-
-// SetJSONLDType sets the "type" property.
-func (this *ActivityStreamsAudio) SetJSONLDType(i vocab.JSONLDTypeProperty) {
- this.JSONLDType = i
-}
-
-// SetTootBlurhash sets the "blurhash" property.
-func (this *ActivityStreamsAudio) SetTootBlurhash(i vocab.TootBlurhashProperty) {
- this.TootBlurhash = i
-}
-
-// VocabularyURI returns the vocabulary's URI as a string.
-func (this ActivityStreamsAudio) VocabularyURI() string {
- return "https://www.w3.org/ns/activitystreams"
-}
-
-// helperJSONLDContext obtains the context uris and their aliases from a property,
-// if it is not nil.
-func (this ActivityStreamsAudio) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string {
- if i == nil {
- return toMerge
- }
- for k, v := range i.JSONLDContext() {
- /*
- Since the literal maps in this function are determined at
- code-generation time, this loop should not overwrite an existing key with a
- new value.
- */
- toMerge[k] = v
- }
- return toMerge
-}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_pkg.go
deleted file mode 100644
index 23e71ecc6..000000000
--- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_block/gen_pkg.go
+++ /dev/null
@@ -1,207 +0,0 @@
-// Code generated by astool. DO NOT EDIT.
-
-package typeblock
-
-import vocab "github.com/go-fed/activity/streams/vocab"
-
-var mgr privateManager
-
-var typePropertyConstructor func() vocab.JSONLDTypeProperty
-
-// privateManager abstracts the code-generated manager that provides access to
-// concrete implementations.
-type privateManager interface {
- // DeserializeActorPropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsActorProperty" non-functional
- // property in the vocabulary "ActivityStreams"
- DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error)
- // DeserializeAltitudePropertyActivityStreams returns the deserialization
- // method for the "ActivityStreamsAltitudeProperty"